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

Sdílet
Vložit
  • čas přidán 11. 09. 2024

Komentáře • 52

  • @heshamabdo6024
    @heshamabdo6024 Před rokem +8

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

    • @StevdzaSan
      @StevdzaSan  Před rokem

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

  • @rma1563
    @rma1563 Před rokem +12

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

    • @StevdzaSan
      @StevdzaSan  Před rokem

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

  • @conorsmall1373
    @conorsmall1373 Před rokem +2

    Crystal clear, thanks Stevdza.

  • @eradaalmasi7590
    @eradaalmasi7590 Před rokem +4

    A useful video as always, well done 👏

  • @manusarangal449
    @manusarangal449 Před 7 měsíci

    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 Před rokem +1

    Excellent! Please do a tutorial on Kotlin Flows.

  • @user-dm4bl9od8l
    @user-dm4bl9od8l Před 8 měsíci

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

  • @user-gt4ge9go8z
    @user-gt4ge9go8z Před 5 měsíci

    PERFECT.

  • @vaibhavarora8793
    @vaibhavarora8793 Před 4 měsíci

    Thank You , It was very useful. loved it

  • @AndrewDChristie
    @AndrewDChristie Před rokem +1

    Thanks!

  • @MateuszKolbusz-mi2zm
    @MateuszKolbusz-mi2zm Před rokem

    Thank you! Great video as always.

  • @starry_shivam
    @starry_shivam Před rokem

    Seems very helpful, thanks!

  • @shahidzbi
    @shahidzbi Před rokem +3

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

    • @StevdzaSan
      @StevdzaSan  Před rokem +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 Před rokem

      @@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 Před rokem

      @@StevdzaSan perfect ❤

    • @afnanhaider512haider7
      @afnanhaider512haider7 Před rokem +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 Před rokem

      @@afnanhaider512haider7 got it

  • @spaghettimonsterfish
    @spaghettimonsterfish Před 2 měsíci

    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?

  • @SWAPS438
    @SWAPS438 Před rokem

    Wow, just an amazing and informative video👏👏👏

  • @Alchemist10241
    @Alchemist10241 Před 6 měsíci

    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 Před 3 měsíci

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

  • @harrychung888
    @harrychung888 Před rokem

    Clearly explain ~

  • @slayer5171
    @slayer5171 Před rokem

    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.

  • @yuhenteng4694
    @yuhenteng4694 Před rokem

    😀very good content, thank you sir

  • @osisuper98
    @osisuper98 Před rokem

    Interesting!

  • @FarooqAhmad-lr1fx
    @FarooqAhmad-lr1fx Před rokem

    Superb

  • @lglf77
    @lglf77 Před rokem

    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 Před rokem

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

  • @vedx
    @vedx Před rokem

    Nice explanation 🔥

  • @sreeranjas6585
    @sreeranjas6585 Před rokem

    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

  • @musloom
    @musloom Před rokem

    very nice video :)

  • @majinzeke4977
    @majinzeke4977 Před rokem

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

    • @StevdzaSan
      @StevdzaSan  Před rokem

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

  • @EmanNollase
    @EmanNollase Před rokem

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

    • @osisuper98
      @osisuper98 Před rokem

      You could use it for one-time events

  • @MuhammadFajar-pl3px
    @MuhammadFajar-pl3px Před rokem

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

  • @gardening8228usj
    @gardening8228usj Před 5 měsíci

    Can I get a heart pleaseee.

  • @msiabuzafarnewton656
    @msiabuzafarnewton656 Před rokem

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

  • @mkjvd
    @mkjvd Před rokem

    how we write unit test for channels buddy

  • @1mYse1LF
    @1mYse1LF Před rokem

    Very usefull

  • @funnymoment9164
    @funnymoment9164 Před 8 měsíci

    Thanks!