No video

😍 Better way to handle Api States in android 🥳 | `Sealed class + Generics`🤩| Hilt | Flow🖖✅

  Рет қаралды 3,487

Programming Simplified

Programming Simplified

Күн бұрын

In this video we will learn a better way to handle api states with sealed classed and Generics in android.
Socials Account :-
Telegram = t.me/joinchat/...
github = github.com/nam...
instagram = / programming_simplified
Medium = / nameisjayant
Linkedin = / jayant-kumar-262597171
Ktor Framework playlist 🤩
• Ktor Framework in hindi
Testting in Android playlist 🤩
• Testing in Android in ...
Dependencies Inject / Dagger Hilt Playlist 🤩
• Android Dagger-Hilt fr...
Android Tutorials in Hindi 🤩
• Android tutorials in h...
Flow Api in Android 🤩
• Android Kotlin Flow Ap...
Rxjava with Retrofit 🤩
• Android Rxjava with Re...
MVVM with Room Database and kotlin Coroutines 🤩
• MVVM with RoomDatabase...
Kotlin Tutorials in hindi 🤩
• Kotlin tutorials for b...
MVVM with Retrofit and Room Database (java) 🤩
• MVVM Android Room Data...
Kotlin Coroutines and Retrofit 🤩
• Android Kotlin Corouti...
Keep Leaning happy coding❤️ 🤩

Пікірлер: 26
@shohagkhan3677
@shohagkhan3677 2 жыл бұрын
Your teaching is really awesome. You describe every line of codes step by step, that's very much helpful for the beginners who really wants to learn advance topics.
@himanshuprajapat4051
@himanshuprajapat4051 2 жыл бұрын
Amazing brother
@jiteshsingh6030
@jiteshsingh6030 2 жыл бұрын
You Are Truly Amazing 💚 💚 🔥 🔥
@akshaygarg8493
@akshaygarg8493 2 жыл бұрын
bhai github link nhi he iska
@rohalsaini2378
@rohalsaini2378 2 жыл бұрын
Hello Bro I used in this way you used but there is one big problem with it. Whenever Api is hit it gets data it is working fine but whenever coroutine runs in background means shift to another fragment or activity without caring about result than app gets crashed and this error is uncaughable in try catch even i tried from last week ...
@rohalsaini2378
@rohalsaini2378 2 жыл бұрын
so using flow may be not good if moving from one fragment to another regard less of response
@ProgrammingSimplified0
@ProgrammingSimplified0 2 жыл бұрын
Okay so simply convert flow into live data in your viewModel
@kanhiyabisht6136
@kanhiyabisht6136 2 жыл бұрын
Hello brother genrics ka topics ko details me smjo na mujhe bhut difficult lagata hai genrics please next video ispe bhi bnao
@ProgrammingSimplified0
@ProgrammingSimplified0 2 жыл бұрын
Sure brother ✌️
@preetmogga3970
@preetmogga3970 8 ай бұрын
Hello bro I use this way it is work perfectly but i face some issue i have one activity and 3 fragment i call api method in fragment but when I switch next fragment and when back same fragment api call again how can i handle this i call api method in onCreatedView function in fragment
@testingaccount2298
@testingaccount2298 2 жыл бұрын
Kindly make this same as with Compose
@preetmogga3970
@preetmogga3970 8 ай бұрын
Bro i use this method it is work perfectly but i face VR
@pawanbhatt4501
@pawanbhatt4501 Жыл бұрын
bhai query api me viewmodel ke andar kese pass kre
@jitendrarathore7331
@jitendrarathore7331 2 жыл бұрын
Agr bhai Api ko token ke sath hit karna ho to bo kaise karenge or token ko refresh karna hi bo kaise karenge using dagger hilt please explain.
@ProgrammingSimplified0
@ProgrammingSimplified0 2 жыл бұрын
It's very important.. Will upload on it soon ✌️❤️
@jitendrarathore7331
@jitendrarathore7331 2 жыл бұрын
@@ProgrammingSimplified0 thanks
@mattwalksoniii8913
@mattwalksoniii8913 Жыл бұрын
Is it possible to filter Response Data in ViewModel class ?
@ProgrammingSimplified0
@ProgrammingSimplified0 Жыл бұрын
Yes you can
@mattwalksoniii8913
@mattwalksoniii8913 Жыл бұрын
@@ProgrammingSimplified0 okay so u mean using a coroutine scope in composable function and apply the filter on list received from Response data?
@ProgrammingSimplified0
@ProgrammingSimplified0 Жыл бұрын
You can filter data in viewmodel and send to composable screen
@mattwalksoniii8913
@mattwalksoniii8913 Жыл бұрын
But In my viewmodel class I received Flow> . So how can I apply the filter method on my flow received.
@ProgrammingSimplified0
@ProgrammingSimplified0 Жыл бұрын
@@mattwalksoniii8913 simply convert into list and call filter method there , for reference you can watch this video kzfaq.info/get/bejne/l8x_lLOIsLycpac.html
Android dagger-hilt with Retrofit  LiveData  and flow Api in hindi  part-10
28:08
Programming Simplified
Рет қаралды 5 М.
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 10 МЛН
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 26 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 187 МЛН
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 10 МЛН
Kotlin Sealed Class (With Demo Source code)
11:17
Smartherd
Рет қаралды 18 М.
Kotlin Generics Explained with Example
10:18
Simplified Coding
Рет қаралды 18 М.
What is Dependency Injection in Android kotlin using dagger hiilt in Hindi
12:06
Android Retrofit Interceptors + OkHttpClient | CheezyCode (Hindi)
13:50
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 10 МЛН