Complete Guide on Kotlin Channels (Coroutines) - Android Studio Tutorial 💎

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 52

  • @heshamabdo6024
    @heshamabdo6024 Год назад +8

    The animation at the beginning of the video is impressive.
    I appreciate the valuable information you provided. 🙂

    • @StevdzaSan
      @StevdzaSan  Год назад

      Oh yeah, I figured that people do love animations ✨️

  • @rma1563
    @rma1563 Год назад +10

    not only your tutorials, but your presentation and design skills are damn good too. Thank you ❤

    • @StevdzaSan
      @StevdzaSan  Год назад

      I'm glad you've enjoyed it. 👊😁

  • @conorsmall1373
    @conorsmall1373 Год назад +2

    Crystal clear, thanks Stevdza.

  • @eradaalmasi7590
    @eradaalmasi7590 Год назад +4

    A useful video as always, well done 👏

  • @manusarangal449
    @manusarangal449 7 месяцев назад

    Great Stuff! Very helpful.
    Just wanted to add one thing - A short comparison between channels and flows would have been very helpful here, as its very easy to get confused when to use which since both do very similar things.

  • @sudheeshmohan4357
    @sudheeshmohan4357 11 месяцев назад +1

    Excellent! Please do a tutorial on Kotlin Flows.

  • @user-dm4bl9od8l
    @user-dm4bl9od8l 8 месяцев назад

    Thank you. Great lessons. I would like to hear more about Coroutine.

  • @user-gt4ge9go8z
    @user-gt4ge9go8z 5 месяцев назад

    PERFECT.

  • @vaibhavarora8793
    @vaibhavarora8793 3 месяца назад

    Thank You , It was very useful. loved it

  • @funnymoment9164
    @funnymoment9164 8 месяцев назад

    Thanks!

  • @MateuszKolbusz-mi2zm
    @MateuszKolbusz-mi2zm Год назад

    Thank you! Great video as always.

  • @SWAPS438
    @SWAPS438 Год назад

    Wow, just an amazing and informative video👏👏👏

  • @starry_shivam
    @starry_shivam Год назад

    Seems very helpful, thanks!

  • @shahidzbi
    @shahidzbi Год назад +3

    when to use channel real case example and when to use flows?

    • @StevdzaSan
      @StevdzaSan  Год назад +4

      Some API's like callbackFlow uses channel behind the scenes. Personally when working with the REST API, or a local ROOM database, I use Flow. Channels on the other hand I haven't used that much, except when I need to trigger some one-time events, where I don't need a lifecycle to trigger my code twice for example. So when Flow looks troublesome in a specific scenario, I think of using Channel instead. But that all depends on a specific use case. :)

    • @rofiesagara9498
      @rofiesagara9498 Год назад

      @@StevdzaSan i have idea to use this to hold viewState in viewModel that will be consume by view and replace SharedFlow with replay = 0. its that best practice?

    • @shahidzbi
      @shahidzbi Год назад

      @@StevdzaSan perfect ❤

    • @afnanhaider512haider7
      @afnanhaider512haider7 Год назад +1

      You can use it in a case when you want to send an event to fragment and on collecting that event you want to navigate to other screen

    • @shahidzbi
      @shahidzbi Год назад

      @@afnanhaider512haider7 got it

  • @Alchemist10241
    @Alchemist10241 5 месяцев назад

    consider using some graphs to explain the complicated parts of your video, this way your contents becomes really superb, but hey great job

  • @spaghettimonsterfish
    @spaghettimonsterfish 2 месяца назад

    Nice video! Is it not a bit odd though to be assigning `channel = produce` within the first launched coroutine? If there was some other async operation added first which blocked (like delay(1000)), the latter coroutine launch would still be referring to the originally initialized `channel = Channel()` when it called receive, etc...right?

  • @yuhenteng4694
    @yuhenteng4694 Год назад

    😀very good content, thank you sir

  • @Axelfromthehudjelud
    @Axelfromthehudjelud 2 месяца назад

    11:30 How is JavaScript sent before Java was received?

  • @FarooqAhmad-lr1fx
    @FarooqAhmad-lr1fx Год назад

    Superb

  • @vedx
    @vedx Год назад

    Nice explanation 🔥

  • @harrychung888
    @harrychung888 Год назад

    Clearly explain ~

  • @osisuper98
    @osisuper98 Год назад

    Interesting!

  • @msiabuzafarnewton656
    @msiabuzafarnewton656 Год назад

    Nice work, Keep us sending more contents like this :) @Stevdza-San

  • @musloom
    @musloom Год назад

    very nice video :)

  • @slayer5171
    @slayer5171 Год назад

    Hii Stevdza, my app sometimes shows a blank screen after back to the foreground.
    Any way to re-compose the screen after the foreground? Perhaps using lifecycle? Thanks in advance.

  • @sreeranjas6585
    @sreeranjas6585 Год назад

    Is there any solution to hide bottom navigation bar in splash screen so that it should not seen whether we are opening the app first time itself

    • @khaqim4148
      @khaqim4148 Год назад

      Create a different activity

  • @lglf77
    @lglf77 Год назад

    getSerializableExtra os deprecated API 33 to pass data class FROM activity other activity. ANY SOLUTION BASIC? I am begging since 2019.

    • @SohaibAhmed-nf9yo
      @SohaibAhmed-nf9yo Год назад

      val data = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
      intent.getSerializableExtra("key", DataModel::class.java)
      } else {
      intent.getSerializableExtra("key")
      }

  • @majinzeke4977
    @majinzeke4977 Год назад

    Are the courses on udemy versus the courses on your website the same thing? Does udemy just charge more?

    • @StevdzaSan
      @StevdzaSan  Год назад

      My website has a better video quality. Udemy is compressing each video that instructors upload. That's the only one difference. :)

  • @EmanNollase
    @EmanNollase Год назад

    Awesome tutorial!! QQ: How do we use channels in compose view?

    • @osisuper98
      @osisuper98 Год назад

      You could use it for one-time events

  • @MuhammadFajar-pl3px
    @MuhammadFajar-pl3px Год назад

    Hello sir, i've sub at ur classes at udemy, is there any chance to consult about that course?

    • @StevdzaSan
      @StevdzaSan  Год назад

      You can always send me a message on Udemy. I'll be sure to respond. ✅️

    • @MuhammadFajar-pl3px
      @MuhammadFajar-pl3px Год назад

      @@StevdzaSan okay sir

  • @gardening8228usj
    @gardening8228usj 4 месяца назад

    Can I get a heart pleaseee.

  • @mkjvd
    @mkjvd Год назад

    how we write unit test for channels buddy

  • @1mYse1LF
    @1mYse1LF Год назад

    Very usefull

  • @AndrewDChristie
    @AndrewDChristie Год назад +1

    Thanks!