Kotlin StateFlow Tutorial | StateFlow vs LiveData vs SharedFlow | CheezyCode - Hindi

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

Cheezy Code

Cheezy Code

Күн бұрын

Пікірлер: 82
@ShortBits786
@ShortBits786 13 күн бұрын
sir last mhe konsa song hai ? completed your series one of best channel for android best teacher i seen in my life thank you sir without you i will be like a computer sirf rata marke concept implement karta kabhi samj nahi ata y it used what it solves , Thank you sir ur best Teacher ,can you mention your linkedin profile
@abdulbasitbhatti2489
@abdulbasitbhatti2489 6 ай бұрын
I just completed this Flows series. Thank you CheezyCode for providing such straightforward and clear explanation videos and tutorials. I am an Android Developer and whenever I need to learn something new, I visit CheezyCode first. You have helped me a lot in my Android development journey. Thank you, again.
@khyatichavda415
@khyatichavda415 2 ай бұрын
Great tutorial and channel I had a career break of 6yr and while learning kotlin corutine and flows amazing explanation help me a lot thank you so much 🙏
@deepakpitaliya8932
@deepakpitaliya8932 2 ай бұрын
Just completed whole series. Great tutorial. Thank you for such clear and concise explanations.
@CheezyCode
@CheezyCode 2 ай бұрын
You're very welcome!
@saqiblatif786
@saqiblatif786 3 ай бұрын
Nice instructor. Hr topic clarity k sth smjhaya hai.
@shubhamshinde-lt7hr
@shubhamshinde-lt7hr Жыл бұрын
Thank you for making this playlist You've made flow simple 😊
@droid-aman
@droid-aman 11 ай бұрын
beautiful series of 6 vedios short, simple & crystal clear, Thnks sir🙏
@rocksolid111
@rocksolid111 10 ай бұрын
Simple and sweet explanation.... with no bakhwas like angragi videos.😄
@utkarshkumar1080
@utkarshkumar1080 2 жыл бұрын
Sir Maja hi aa gaya you are really confidence booster 😍😍😍😍😍,Sir aur videos bachi hai is playlist me ? I am preparing for interview in top MNC is this playlist enough ? and Sir one more thing aap kaha job karte ho ?
@CheezyCode
@CheezyCode 2 жыл бұрын
thank you...interview ke liye I guess kaafi hai ...bas MVVM mei integrate aur karlo...uspe video dalni hai thoda samay lenge...but jaldi he upload karta hu....ek US based company hai...Noida mei dev center....
@utkarshkumar1080
@utkarshkumar1080 2 жыл бұрын
@@CheezyCode Ok Sir thanks for the guidance 🥰
@ihareshvaghela
@ihareshvaghela 8 ай бұрын
I appreciate your clear communication. Thanks!
@DnyaneshwarMahajan-e8b
@DnyaneshwarMahajan-e8b 11 ай бұрын
Excellent, Outstanding. You made Flow simple!!
@naveennaik1889
@naveennaik1889 2 жыл бұрын
Thanks for the video , Its really helpfull , I just wanted to know is there any videos coming on these flows ??? i means is der any major concepts remaining in this flows section ??? coz i am preparing for interview on ur video basis . . . major topics
@CheezyCode
@CheezyCode 2 жыл бұрын
Majorly yehi hoga...baaki operators he h...uski koi limit nahi...concepts isse deep mei nahi puchne chaiye interview mei
@vikrantsaini437
@vikrantsaini437 Жыл бұрын
Explanation at the easiest level! However, I have a question here. When explaining difference between LiveData and StateFlow, you said that Livedata is lifecycle aware but if we are collecting a flow inside a coroutine scope then does that means StateFlow is also lifecycle aware, as coroutine also has a lifecycle scope?
@CheezyCode
@CheezyCode Жыл бұрын
Not directly aware but linked via coroutine scope
@sumeetchawla3545
@sumeetchawla3545 2 жыл бұрын
Explained in very simple terms. Great !!! Keep it up !
@rishabhgarg6692
@rishabhgarg6692 Жыл бұрын
Best, simple clear, Thank you for such quality contents
@kishorramani007
@kishorramani007 Жыл бұрын
Timimg at 5:38, shows that item ("5") collected before emitting why this output?
@rizwansworld
@rizwansworld 3 ай бұрын
Thanks man. Really well explained!
@no.bakwas
@no.bakwas 4 ай бұрын
The difference in last 10:21 , isn't it between flow and live data rather than state flow and live data??
@CheezyCode
@CheezyCode 4 ай бұрын
State Flow is a flow?
@no.bakwas
@no.bakwas 4 ай бұрын
@@CheezyCode yes, stateFlow is a flow. I am saying you said and labelled the difference as 'LIVEDATA VS STATEFLOW' when it doesn't contain any particular property of stateFlow, all difference are of flow. Label ' livedata vs flow' is more accurate imo
@CheezyCode
@CheezyCode 4 ай бұрын
Yes... generally people use stateflow to replace livedata that is why I have written this.
@no.bakwas
@no.bakwas 4 ай бұрын
@@CheezyCode ok understood. Nice video btw. All of your videos are really helpful. Thank you very much for creating.
@androiddev7267
@androiddev7267 2 жыл бұрын
was this last video of flows series?
@AkashJhaDDN
@AkashJhaDDN 2 жыл бұрын
Inhone number nai daala 1 2 karke mera v bhatkao ho gaya tha 😅
@CheezyCode
@CheezyCode 2 жыл бұрын
Playlist h 😂 jitne hai yehi h....
@androiddev7267
@androiddev7267 2 жыл бұрын
@@CheezyCode ok sir
@mysuperemecy
@mysuperemecy Жыл бұрын
Best explanation ever
@aruaru1801
@aruaru1801 2 жыл бұрын
Sir, plz make a video on Unit testing Mockito, JUnit, Roboelectric
@anitavaghasiya369
@anitavaghasiya369 2 жыл бұрын
hello sir, what is Rxjava?? i m confused for Rxkava n liveData both are same ya different??
@CheezyCode
@CheezyCode 2 жыл бұрын
RxJava - duniya hai poori.. LiveData - uska minuscule version hai...RxJava ka ek concept hai uska chota sa implementation hai....
@iiitsricity3171
@iiitsricity3171 2 жыл бұрын
Tussi great ho aap🙇
@CheezyCode
@CheezyCode 2 жыл бұрын
Thank you 😃
@2chotti
@2chotti 4 ай бұрын
Brilliant videos. Thank you so much
@temposharma1220
@temposharma1220 Жыл бұрын
If I need to return non-stream kind of data like api response of any profile, so should I use flow or simple suspend function?
@rexitspersonal8353
@rexitspersonal8353 Жыл бұрын
i guess simple suspend function
@ZeeshanAslam-k7v
@ZeeshanAslam-k7v Жыл бұрын
Thank you so much for the lovely tutorials. You explain very nicely. I have a question If we use SharedFlow with replay 1 then Isn't it the same as StateFlow?
@CheezyCode
@CheezyCode Жыл бұрын
State Flow will provide you only current state. But let's say as you subscribe, emitter starts emitting...you will be getting 2 values at the same time(one because of replay and other one will be currently emitted value)...but with state Flow you will only get 1 value and that will be the latest one no matter what. Semantic difference hai...stateflow means flow having state
@CheezyCode
@CheezyCode Жыл бұрын
Hope this helps 🤘🏻
@rexitspersonal8353
@rexitspersonal8353 Жыл бұрын
@@CheezyCode okey it means sharedFlow is not giving us latest value where as stateFlow is giving latest value right ?
@basavarajashok
@basavarajashok 2 жыл бұрын
Simple and clear . Thank u ☺️
@tusharvarankar6553
@tusharvarankar6553 Жыл бұрын
Good explanation of flow...thank you for this smooth understandable video....can you make a video for Android HAL (camera, audio, media player,BLe etc) concept please.
@CheezyCode
@CheezyCode Жыл бұрын
Thanks...will see
@tusharvarankar6553
@tusharvarankar6553 Жыл бұрын
@@CheezyCode thanks you 😊
@sekharsudhansu8176
@sekharsudhansu8176 2 жыл бұрын
Bhai Shared flow to samajh main aagaya and State flow bhi but State Flow ka kuch real world example miljata to samajhne main asani hoti aaur, jaise aapne shared flow ka example deke samjhaya cinema hall wala.. waisa kuch real world scenario main or else programming main kab use kare shared flow wo jan.na hai
@CheezyCode
@CheezyCode 2 жыл бұрын
Jahan pe livedata use kar rahe ho...waha pe stateflow se replace kardo...notes wali app mei replace karke dikhata hu jaldi he
@sekharsudhansu8176
@sekharsudhansu8176 2 жыл бұрын
@@CheezyCode Sahi hai bhai just post kiya aapne, dekh raha hun StateFlow vs LiveData. Notes app
@RAJSINGH-mr7hq
@RAJSINGH-mr7hq 2 жыл бұрын
Superb sir 👌 👏
@RitikaGuleria-o1y
@RitikaGuleria-o1y Жыл бұрын
nice content sir
@56omkarkalel86
@56omkarkalel86 2 жыл бұрын
Mind blowing sir 🔥🔥🔥❤️❤️❤️
@CheezyCode
@CheezyCode 2 жыл бұрын
Thank you 😃
@kishorramani007
@kishorramani007 Жыл бұрын
Thanks for this series :)
@Mohit-gb9dv
@Mohit-gb9dv 2 жыл бұрын
/* different topics */ Sir , I have some data which I want to use in my entire app but dont want to use bundle or put extra method to send data to different activities or fragment Is there any way to do that please tell me
@CheezyCode
@CheezyCode 2 жыл бұрын
you can keep them in application object - but risky hoga toh keep it as singleton...make sure you don't pollute the global object...warna soch ban jaati hai baad mei ki sab kuch global pe he rakhdo....jetpack data store can also be used , create a wrapper around it to get the data from that...single place of getting and storing the object.
@CoCAttackArena
@CoCAttackArena Жыл бұрын
@@CheezyCode sir shared preference nahi use kar sakte kya??
@anupsarkar3063
@anupsarkar3063 2 жыл бұрын
very nice and well explained...
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks Anup
@arsalanjibran3138
@arsalanjibran3138 2 жыл бұрын
At 6:35 what if we used replay in sharedflow will it collect since emit has stopped after 6 ms.
@CheezyCode
@CheezyCode 2 жыл бұрын
yes that's why it is a special type of Shared Flow...isme ek concept aur hai - Conflation ka - i.e. it will keep the latest value
@CheezyCode
@CheezyCode 2 жыл бұрын
Good question hai waise....that means you understood the concepts well... 🤘
@arsalanjibran3138
@arsalanjibran3138 2 жыл бұрын
@@CheezyCode Also coroutineScope does not have lifecycle so what happens if app is closed, will it still work or stop.
@CheezyCode
@CheezyCode 2 жыл бұрын
Scopes hote hai coroutines ke...like viewmodel scope and lifecycle Scope... activity destroy hogi toh lifecycle Scope bhi destroy hojayega...uske andar ka flow bhi....app close pe activity destroy nahi hui hogi toh maintain hona chaiye
@arsalanjibran3138
@arsalanjibran3138 2 жыл бұрын
@@CheezyCode let me rephrase it, what is scope of "CoroutineScope(...).launch " this piece of code . I want to know scope of this. The lifecycle,global scopes I understood but scope of code in quotation I do not know
@NiteshSingh-bv9lu
@NiteshSingh-bv9lu 2 жыл бұрын
good video. but i want help in socket tcp client server so can you help me here
@CheezyCode
@CheezyCode 2 жыл бұрын
?
@NiteshSingh-bv9lu
@NiteshSingh-bv9lu 2 жыл бұрын
@@CheezyCode how to send data from our app to laptop?
@CheezyCode
@CheezyCode 2 жыл бұрын
Via bluetooth karlo..socket tak mat pahocho...
@NiteshSingh-bv9lu
@NiteshSingh-bv9lu 2 жыл бұрын
@@CheezyCode haa but wapas data socket server se lenaa bhi hai naa like TCP client or TCP server dono use krnaa hai.ye chij Bluetooth me kese hogaa
@muhammadirfanrajput8400
@muhammadirfanrajput8400 2 жыл бұрын
Very good
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks 👍
@yuviyboy3388
@yuviyboy3388 2 жыл бұрын
Thanks Sir
@CheezyCode
@CheezyCode 2 жыл бұрын
Welcome ✌
@vikassharma-by4kw
@vikassharma-by4kw Жыл бұрын
बहुत बढ़िया, साला कन्फ्यूज कर रखा था
@tusharjain7626
@tusharjain7626 10 ай бұрын
Personal note: stateFlow vs livedata
@rishikeshsingh9946
@rishikeshsingh9946 2 жыл бұрын
Thanku Sir....Awesome....
@CheezyCode
@CheezyCode 2 жыл бұрын
🤘
PIZZA or CHICKEN // Left or Right Challenge
00:18
Hungry FAM
Рет қаралды 9 МЛН
Wait… Maxim, did you just eat 8 BURGERS?!🍔😳| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 9 МЛН
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 35 МЛН
Mia Boyka х Карен Акопян | ЧТО БЫЛО ДАЛЬШЕ?
1:21:14
Что было дальше?
Рет қаралды 9 МЛН
Kotlin Dispatchers, CoroutineContext, and CoroutineScope
21:30
Kotlin Shared Flow Tutorial | Kotlin Flows | CheezyCode - Hindi
11:03
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 81 М.
Sealed Classes vs Enums in Kotlin | Hindi
15:47
Vision Android Hindi
Рет қаралды 2 М.
PIZZA or CHICKEN // Left or Right Challenge
00:18
Hungry FAM
Рет қаралды 9 МЛН