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

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

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

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

    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 ✨️

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

    Crystal clear, thanks Stevdza.

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

    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. 👊😁

  • @smit9779
    @smit9779 20 дней назад

    Liked your explaination very much Thank you

  • @КонстантинРачковский-в7ю

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

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

    A useful video as always, well done 👏

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

    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 Год назад +1

    Excellent! Please do a tutorial on Kotlin Flows.

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

    Thank You , It was very useful. loved it

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

    Seems very helpful, thanks!

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

    Thanks!

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

    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?

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

    Thank you! Great video as always.

  • @전계원-c4c
    @전계원-c4c 8 месяцев назад

    PERFECT.

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

    Wow, just an amazing and informative video👏👏👏

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

    Interesting!

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

    Clearly explain ~

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

    Superb

  • @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

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

    😀very good content, thank you sir

  • @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.

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

    Nice explanation 🔥

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

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

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

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

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

    very nice video :)

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

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

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

      You could use it for one-time events

  • @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")
      }

  • @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

  • @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. :)

  • @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 7 месяцев назад

    Can I get a heart pleaseee.

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

    how we write unit test for channels buddy

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

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

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

    Very usefull

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

    Thanks!