issues
search
DoTheBestMayB
/
UpbitAPI
업비트 API를 활용한 어플
1
stars
0
forks
source link
ViewModel 구현하기
#19
Closed
BeokBeok
closed
2 years ago
BeokBeok
commented
2 years ago
요구사항
ViewModel을 구현합니다.
프로그래밍 요구사항
AAC ViewModel과 ViewModelProvider를 사용하여 ViewModel을 구현합니다.
MainActivity에서는 ViewModel을 초기화하는 코드를 작성합니다.
ViewModel에서 UseCase를 호출하는 함수를 만드시고, MainActivity의 onCreate에서 해당 함수를 호출합니다.
ViewModel에서 UseCase를 실행하고 그 결괏값을 LiveData에 저장합니다.
data 모듈과 domain 모듈에 접근할 수는 있지만, 구현체에는 접근하지 않습니다.
ViewModel의 테스트 코드를 작성합니다.
학습해보면 좋을만한 것들
ViewModel은 어떤 역할을 하는가?
AAC ViewModel을 사용하지 않아도 MVVM 구조를 적용할 수 있을까?
MVVM이란 무엇일까?
안드로이드에서의 MVVM은 다른 MVVM과 어떤 것이 다를까?
AAC ViewModel의 생명주기는 어떻게 될까?
LiveData는 무엇이고, 어떤 장점이 있을까?
ViewModelProvider는 어떤 역할을 할까?
위 내용들을 학습해보시고 학습하신 내용을 정리해서 Discussions에 작성해주세요.
DoTheBestMayB
commented
2 years ago
ViewModel은 어떤 역할을 하는가?
AAC ViewModel을 사용하지 않아도 MVVM 구조를 적용할 수 있을까?
MVVM이란 무엇일까?
안드로이드에서의 MVVM은 다른 MVVM과 어떤 것이 다를까?
AAC ViewModel의 생명주기는 어떻게 될까?
LiveData는 무엇이고, 어떤 장점이 있을까?
ViewModelProvider는 어떤 역할을 할까?
https://github.com/DoTheBestMayB/UpbitAPI/discussions/24
요구사항
프로그래밍 요구사항
학습해보면 좋을만한 것들
위 내용들을 학습해보시고 학습하신 내용을 정리해서 Discussions에 작성해주세요.