The Ultimate guide to MVI in Android

preview_player
Показать описание

Initial Project:
Posts Api:

In this video i explain Model View Intent(MVI) architecture components and how to use it in Android apps by implementing MVI with a library called Orbit MVI.

00:00 Introduction
00:58 MVI Architecture
05:26 Networking with Ktor
13:14 GetPost use case
15:44 ViewModel
27:46 Running the app
Рекомендации по теме
Комментарии
Автор

This guy can do a lot in less than 30min 👏

yasserakbbach
Автор

Hey Legend.. Just learned alot from your Food app playlist .. I have implemented some other stuff by my self, called some other apis.

Just Because of you..

You are less known in Ytbe but You have DIAMOND in your channels..

Just waiting for 20 days then I will start follow your Ecommerce App Playlist in my vacation of 10 days 🤗🤗

Thanks Legend 🤗
God Bless you

name
Автор

Thanks a lot man!

I did not understand the MVI architecture for 100% because I did not see what Intent, Container & Reducer do.
It would be great if you also show the logic of code inside Container & Reducer and how do they work with Intent & State?

Also how would be look like the ViewState inside ViewModel if there are more than 1 view state data?
For example:
1) we need to get from api some Music Singer data, while getting it we show shimmer instead of loading but only for view of Music Singer,
2) then when we got data we need to invoke other api to get all Songs of this Singer and again while getting data we show shimmer only for Songs view block

bagdat.yakushev
Автор

question, is this pattern you are using is official convention or is it your original.
i need to know, cz i have some disagreement at some point. for example ; i used to not returning flow in the usecase. i'd rather rather do a purefunction or return a kotlin result.

i just want to know if it okay to doing that, or is this some kind of official convention for the use case pattern to return flow?

stefanusayudha
Автор

Amazing video 🤩🤩
I just wanted to ask some questions :
1. Which architecture is better overall MVVM or MVI ?
2. What is the difference between MVI and MVP ?

AbhinavKumar-dlph
Автор

why so much code for a very simple task ?

I get that MVI ensure a single source of truth for the state but still... its too much work and too complex for just the implementation !!

If its gonna get this messy isn't better to use MVVM and work your way around state managment ?

jabrane
Автор

Yr videos are gr8 but they are not meant for beginners as you know most of the non-beginners dont learn by watching videos you do not get views

Mohit-gbdv