Kotlin Flows & Channels Introduction | Android | CheezyCode - Hindi

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Kotlin Flow Tutorial - In this video, we will learn about what is Kotlin Flow? What is channel in Kotlin? We will understand - what are streams and how to implement them in Kotlin. Learn what is the need of streams, what are suspend functions and coroutines in Kotlin with simple example.
    Coroutines Suspend functions work great when we have no or single output. But for scenarios where we have streams of data, we need to have some mechanism to implement that behavior. For this we have Kotlin Channels and Flows. Channels are hot whereas Flows are mostly cold. Hot stream is one where producers keeps producing data even if there are no consumers. Cold stream produces data only where there is at least one consumer available to consume the data.
    Learn by creating a simple example in Hindi.
    Topics covered -
    1. Coroutines and Suspend
    2. What are streams? How to implement Streams in Kotlin
    3. Channels and Flows with Simple Example
    4. Hot and Cold Streams.
    5. Channels vs Flows in Kotlin
    Kotlin Flows Playlist -
    • Kotlin Flows Tutorials
    Jetpack Paging Tutorial -
    • Android Paging 3 | Jet...
    Complete Dependency Injection Playlist Link -
    • Dagger 2 - Dependency ...
    Complete Android Architecture Components Playlist -
    • Android Architecture C...
    Beginner series in Android Playlist (Hindi) -
    • Android Tutorials Step...
    Kotlin Beginners Tutorial Series -
    • Kotlin Beginner Tutori...
    For more info - visit the below link
    www.cheezycode.com
    We are social. Follow us at -
    Facebook - / cheezycode
    Twitter - / cheezycode
    Instagram - / cheezycode

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

  • @vaibhavmuley5081
    @vaibhavmuley5081 2 года назад +27

    This channel not only viewed by freshers but also by experienced working professionals. Your content is very good, easy to understand and you have best teaching skills. Your efforts are highly appreciated. I have learned lot of things from you, thanks a lot Cheezy Code! for for that😊. Podcasts are also great way of learning from the industry. Keep up the good work.💯

  • @Androidmeda
    @Androidmeda 2 года назад +14

    You are the only person who can perfectly teach the SOLID principals with real examples.

    • @CheezyCode
      @CheezyCode  2 года назад

      😁 sab real life hai - code bhi real life ko automate karne ke liye he likh rahe hai....

    • @Androidmeda
      @Androidmeda 2 года назад

      @@CheezyCode hehe 😆 I mean with coding example

    • @CheezyCode
      @CheezyCode  2 года назад +2

      Bilkul bro...ye plan mei hai...design patterns aur solid principles...dono cover karne ka mann hai

    • @Androidmeda
      @Androidmeda 2 года назад +1

      @@CheezyCode that's great, I appreciate your hard work, and I'll watch your all videos. BTW your Coroutines course is superb. Stay blessed Bro.

    • @Abhishekdubey-mn8up
      @Abhishekdubey-mn8up 2 года назад

      Rightly said 😅

  • @googlysahoo1397
    @googlysahoo1397 2 года назад +3

    Came here to see just one video and now watching each and every videos of android. The best channel for beginners to learn android development using kotlin.

  • @Dibyendu.M
    @Dibyendu.M Год назад +3

    I'm learning Android App Development & these videos are super useful. Thanks, man!

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

    Wow! Just extraordinary. The way you explained hot and cold streams by comparing them to Theatre and Netflix is just marvellous Please continue the good work that you do 🙏🔥

  • @bhoomivaghasiya2794
    @bhoomivaghasiya2794 9 месяцев назад +2

    Just wow! Well done! You explained every part of the tutorial in very simple words. Thank you so much for sharing your knowledge with us. Keep it up :)

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

    Back again! Thanks bro for making such awesome content for the fellow developers. Started watching the playlist yesterday, and currently done with upto 3rd video about Terminal, Non-Terminal operators.

  • @shubhamshinde-lt7hr
    @shubhamshinde-lt7hr Год назад +1

    Really good series, keep going man.
    Thank you for making this.

  • @amanpahari690
    @amanpahari690 10 месяцев назад +1

    my everGreen 1st preference *Cheezy code* whenever watned to understand kotlin / android topic

  • @saifbutt3038
    @saifbutt3038 2 года назад +4

    Great series.
    Would love to see it in MVVM architecture

  • @vishalpatel5954
    @vishalpatel5954 2 года назад

    Great sir. The explanation is very nice and easy to understand for everyone.

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

    It's really valuable for experience professionals also.

  • @Suraj-ls8dm
    @Suraj-ls8dm 2 года назад

    this channel guarantees that u will understand the topic completely

  • @gofudgeyourselves9024
    @gofudgeyourselves9024 2 года назад

    Exactly what i neeeded. Please do more practical videos on flow

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

    The best part is the rap in the last : )

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

    video ky last me song apki voice me😋 me to everytime sunta hun

  • @baijusharma6027
    @baijusharma6027 2 года назад

    Thank you ❤️. U r great. Thank you for your efforts.

  • @rohanpatil8417
    @rohanpatil8417 2 года назад

    Thank you...much needed!

  • @rishikeshsingh9946
    @rishikeshsingh9946 2 года назад

    Great sir will enjoy this series also bring here MVI , compose also

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

    well explained..

  • @tanveerahmed729
    @tanveerahmed729 2 года назад

    Nice explained. Please live streaming wali example implement krain next video me.

  • @Sikarwar0020
    @Sikarwar0020 2 года назад

    Thanks for this Series Sir ji 🤩

  • @khapp7821
    @khapp7821 2 года назад

    very nice and well explanation. thank you

  • @al-aminislam1493
    @al-aminislam1493 2 года назад

    Quality Video

  • @SanjeevKumar-kd9bt
    @SanjeevKumar-kd9bt 2 года назад

    Thanka sir for beautiful series

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

    Great :)

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

    thanks for doing hard work for us, but plzzzzzzzzzzzzzzzzzzzzzzz sir wapis kab ayn gye ap 😥😥😥😥😥😥😥8 month sy koi update nahi😥😥😥😥😥😟😟😟😟😟😟😟

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

    Bestam best

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

    which keyboard do you use? It sounds nice.

  • @kaushiksaha8479
    @kaushiksaha8479 2 года назад

    Thank you so much

  • @kalpeshbornare7877
    @kalpeshbornare7877 2 года назад

    Thank you so sir i had one doubts
    If i have chat screen which continues Update data for (Sender) and Receiver.
    Do i need to use flow to show Updated results on screen ?

    • @CheezyCode
      @CheezyCode  2 года назад +1

      Yes better use case yehi h streams ka...

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

    I want to create an audio player. So do I need to use hot or cold flow for UI updating?
    I was thinking, that my music will play in the background when UI is in idle mode... but the player producing data though UI is not receiving the data. So by this thinking, I make a decision that I can produce hot flow from the media player.. and when my UI is in the active state it will receive the flow data and update the UI. So the question is my thinking is right or wrong? or can I use cold flow for this purpose?

  • @ArifRahman-ce7bf
    @ArifRahman-ce7bf 2 года назад

  • @kaushiksaha8479
    @kaushiksaha8479 2 года назад

    Hi sir, which one should we prefer to use, rx java or kotlin flow?

  • @kamaravichow
    @kamaravichow 2 года назад

    ❤️ed it

  • @raghu1077
    @raghu1077 2 года назад

    Any information when the jetpack compose series will start ?

    • @CheezyCode
      @CheezyCode  2 года назад

      Soon...but thoda prep work required hai

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

    Can you make a total playlist for beginners for Android studio+kotlin.

  • @sauravsingh6776
    @sauravsingh6776 2 года назад

    Wow

  • @divyanshverma2424
    @divyanshverma2424 2 года назад

    What is the use of suspend functions added in kotlin if the response will be received after full execution of the suspend block?

    • @CheezyCode
      @CheezyCode  2 года назад

      Thread block nahi hota...computation wahi pe suspend hojati hai...

    • @divyanshverma2424
      @divyanshverma2424 2 года назад

      @@CheezyCode Can we say that, what multiple suspend function can do by suspending coroutines, we can achieve same by using Flows/Channels?
      For instance - we can get result from different suspend functions by suspending coroutines and getting result into particular job.

    • @CheezyCode
      @CheezyCode  2 года назад +1

      yes or no....isme ek sequence bhi h data ke beech mei - matlab - pehle 1 aayega fir 2 aayega fir 3 and so on....iss sequence ko barkaraar rakhna hai....I can run multiple suspend functions to get the data but sequence maintain karna bhari padega...ussi cheez ke liye streams hai....
      E.g. se samjhe toh - video play ho rahi h - usme we have to maintain the sequence of data. Multiple suspend function run karke data aajyega but sequence maintain karna bhari padega...hope isse clear hoga

  • @ravindraverma8413
    @ravindraverma8413 2 года назад

    How coroutine get to know this is IO operation technically ?

    • @CheezyCode
      @CheezyCode  2 года назад +1

      Hum btate hai by marking it as suspend function

  • @Mohit-il9gx
    @Mohit-il9gx 2 года назад

    Ap ki USA ke journey pe video banao

    • @CheezyCode
      @CheezyCode  2 года назад

      bro wapis aagaye - tabhi ka set hai linkedin pe....

    • @Mohit-il9gx
      @Mohit-il9gx 2 года назад

      @@CheezyCode ok ok

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

    🥰🥰🥰🥰🥰🥰🥰

  • @luckykatariya2900
    @luckykatariya2900 2 года назад

    👍

  • @kishorramani007
    @kishorramani007 2 года назад

    Concept is so easy.
    Khali khali ghabra rahe the flow se 😂

    • @CheezyCode
      @CheezyCode  2 года назад

      abhi toh shuru hua - thoda complex bhi hoga aage....😁

  • @piyushkumardongre5873
    @piyushkumardongre5873 2 года назад

    So is it analogous to Sockets in case of web dev ?

    • @CheezyCode
      @CheezyCode  2 года назад

      Not analogous but to consume websockets data in android we can use Flows...

  • @Punarjagran
    @Punarjagran 2 года назад

    🙏🥺👏👏👏👏👏👏💖

  • @sagardeshmukh1835
    @sagardeshmukh1835 2 года назад

    Series on Rx java please

  • @kingcoder7654
    @kingcoder7654 2 года назад

    Sir channel bhi pura complete kr do

    • @CheezyCode
      @CheezyCode  2 года назад

      use nahi hoga...

    • @kingcoder7654
      @kingcoder7654 2 года назад

      @@CheezyCode sir ji bhut confused hu bata dena.. maine use kr hi lunga kahi na kahi😅😅

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

    why is the title in english?

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

      Because programming language has words that are in English. People search using these words.