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

  Рет қаралды 18,507

Stevdza-San

Stevdza-San

Күн бұрын

Пікірлер: 53
@heshamabdo6024
@heshamabdo6024 Жыл бұрын
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 ✨️
@AndrewDChristie
@AndrewDChristie Жыл бұрын
Thanks!
@conorsmall1373
@conorsmall1373 Жыл бұрын
Crystal clear, thanks Stevdza.
@eradaalmasi7590
@eradaalmasi7590 Жыл бұрын
A useful video as always, well done 👏
@rma1563
@rma1563 Жыл бұрын
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 Ай бұрын
Liked your explaination very much Thank you
@КонстантинРачковский-в7ю
@КонстантинРачковский-в7ю 11 ай бұрын
Thank you. Great lessons. I would like to hear more about Coroutine.
@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.
@vaibhavarora8793
@vaibhavarora8793 7 ай бұрын
Thank You , It was very useful. loved it
@sudheeshmohan4357
@sudheeshmohan4357 Жыл бұрын
Excellent! Please do a tutorial on Kotlin Flows.
@starry_shivam
@starry_shivam Жыл бұрын
Seems very helpful, thanks!
@MateuszKolbusz-mi2zm
@MateuszKolbusz-mi2zm Жыл бұрын
Thank you! Great video as always.
@SWAPS438
@SWAPS438 Жыл бұрын
Wow, just an amazing and informative video👏👏👏
@StevdzaSan
@StevdzaSan Жыл бұрын
Thanks!
@전계원-c4c
@전계원-c4c 8 ай бұрын
PERFECT.
@yuhenteng4694
@yuhenteng4694 Жыл бұрын
😀very good content, thank you sir
@StevdzaSan
@StevdzaSan Жыл бұрын
You're welcome!
@osisuper98
@osisuper98 Жыл бұрын
Interesting!
@vedx
@vedx Жыл бұрын
Nice explanation 🔥
@StevdzaSan
@StevdzaSan Жыл бұрын
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?
@Axelfromthehudjelud
@Axelfromthehudjelud 5 ай бұрын
11:30 How is JavaScript sent before Java was received?
@harrychung888
@harrychung888 Жыл бұрын
Clearly explain ~
@shahidzbi
@shahidzbi Жыл бұрын
when to use channel real case example and when to use flows?
@StevdzaSan
@StevdzaSan Жыл бұрын
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 Жыл бұрын
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
@FarooqAhmad-lr1fx
@FarooqAhmad-lr1fx Жыл бұрын
Superb
@musloom
@musloom Жыл бұрын
very nice video :)
@Alchemist10241
@Alchemist10241 9 ай бұрын
consider using some graphs to explain the complicated parts of your video, this way your contents becomes really superb, but hey great job
@StevdzaSan
@StevdzaSan 9 ай бұрын
Noted!
@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.
@EmanNollase
@EmanNollase Жыл бұрын
Awesome tutorial!! QQ: How do we use channels in compose view?
@osisuper98
@osisuper98 Жыл бұрын
You could use it for one-time events
@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. :)
@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") }
@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 8 ай бұрын
Can I get a heart pleaseee.
@msiabuzafarnewton656
@msiabuzafarnewton656 Жыл бұрын
Nice work, Keep us sending more contents like this :) @Stevdza-San
@1mYse1LF
@1mYse1LF Жыл бұрын
Very usefull
@Briogus
@Briogus Жыл бұрын
how we write unit test for channels buddy
@funnymoment9164
@funnymoment9164 11 ай бұрын
Thanks!
Return a value from a Kotlin Coroutine Scope - Explained
6:32
Stevdza-San
Рет қаралды 19 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 10 МЛН
Deadpool family by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 6 МЛН
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 3,1 МЛН
5 Fatal Coroutine Mistakes Nobody Tells You About
18:15
Philipp Lackner
Рет қаралды 89 М.
Channels in Kotlin Coroutines | Nikita Koval
45:20
Kotlin by JetBrains
Рет қаралды 8 М.
How to Structure a Clean, Multi-Module Compose Multiplatform App
22:33
Kotlearn - Kotlin Tutorials
Рет қаралды 194
Kotlin Flows in practice
21:06
Android Developers
Рет қаралды 166 М.
Build a Book Library App for Android & iOS using ROOM KMP (MVVM)
35:58
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 82 М.
Figma on Steroids? Enhance your Design Skills with Creatie.ai
8:42