toggle menu
| MTN MOMO ANDROID SDK
androidJvm
switch theme
search in API
sample
/
io.rekast.sdk.sample.views.home
/
HomeScreenViewModel
Home
Screen
View
Model
class
HomeScreenViewModel
@
Inject
constructor
(
defaultRepository
:
DefaultRepository
,
context
:
Context
,
settings
:
Settings
)
:
ViewModel
Members
Constructors
Home
Screen
View
Model
Link copied to clipboard
@
Inject
constructor
(
defaultRepository
:
DefaultRepository
,
context
:
Context
,
settings
:
Settings
)
Properties
access
Token
Link copied to clipboard
val
accessToken
:
String
account
Balance
Link copied to clipboard
var
accountBalance
:
MutableLiveData
<
AccountBalance
?
>
account
Holder
Status
Link copied to clipboard
var
accountHolderStatus
:
MutableLiveData
<
AccountHolderStatus
?
>
basic
User
Info
Link copied to clipboard
var
basicUserInfo
:
MutableLiveData
<
BasicUserInfo
?
>
show
Progress
Bar
Link copied to clipboard
val
showProgressBar
:
MutableLiveData
<
Boolean
>
snack
Bar
State
Flow
Link copied to clipboard
val
snackBarStateFlow
:
SharedFlow
<
SnackBarComponentConfiguration
>
Functions
add
Closeable
Link copied to clipboard
open
fun
addCloseable
(
closeable
:
AutoCloseable
)
fun
addCloseable
(
key
:
String
,
closeable
:
AutoCloseable
)
get
Account
Balance
Link copied to clipboard
fun
getAccountBalance
(
)
Only works with the Collection API
get
Basic
User
Info
Link copied to clipboard
fun
getBasicUserInfo
(
)
get
Closeable
Link copied to clipboard
fun
<
T
:
AutoCloseable
>
getCloseable
(
key
:
String
)
:
T
?
get
User
Info
With
Consent
Link copied to clipboard
fun
getUserInfoWithConsent
(
)
validate
Account
Holder
Status
Link copied to clipboard
fun
validateAccountHolderStatus
(
)