mvvm-state-deprecated
/
dev.icerock.moko.mvvm.livedata
common
Package dev.
icerock.
moko.
mvvm.
livedata
Functions
Functions
concatData
Link copied to clipboard
common
fun <
T1
,
E
,
T2
,
OT
>
LiveData
<
State
<
T1
,
E
>>.
concatData
(liveData:
LiveData
<
State
<
T2
,
E
>>, function: (
T1
,
T2
) ->
OT
):
LiveData
<
State
<
OT
,
E
>>
Content copied to clipboard
data
Link copied to clipboard
common
fun <
T
,
E
>
LiveData
<
State
<
T
,
E
>>.
data
():
LiveData
<
T
?>
Content copied to clipboard
dataTransform
Link copied to clipboard
common
fun <
IT
,
E
,
OT
>
LiveData
<
State
<
IT
,
E
>>.
dataTransform
(transform:
LiveData
<
IT
>.() ->
LiveData
<
OT
>):
LiveData
<
State
<
OT
,
E
>>
Content copied to clipboard
dataValue
Link copied to clipboard
common
fun <
T
,
E
>
LiveData
<
State
<
T
,
E
>>.
dataValue
():
T
?
Content copied to clipboard
emptyAsData
Link copied to clipboard
common
fun <
T
,
E
>
LiveData
<
State
<
T
,
E
>>.
emptyAsData
(dataBuilder: () ->
T
):
LiveData
<
State
<
T
,
E
>>
Content copied to clipboard
emptyAsError
Link copied to clipboard
common
fun <
T
,
E
>
LiveData
<
State
<
T
,
E
>>.
emptyAsError
(errorBuilder: () ->
E
):
LiveData
<
State
<
T
,
E
>>
Content copied to clipboard
emptyIf
Link copied to clipboard
common
fun <
T
,
E
>
LiveData
<
State
<
T
,
E
>>.
emptyIf
(emptyPredicate: (
T
) ->
Boolean
):
LiveData
<
State
<
T
,
E
>>
Content copied to clipboard
error
Link copied to clipboard
common
fun <
T
,
E
>
LiveData
<
State
<
T
,
E
>>.
error
():
LiveData
<
E
?>
Content copied to clipboard
fun <
T
,
E
,
ST
:
State
<
T
,
E
>,
LD
:
LiveData
<out
ST
>>
List
<
LD
>.
error
():
LiveData
<
E
?>
Content copied to clipboard
errorTransform
Link copied to clipboard
common
fun <
T
,
IE
,
OE
>
LiveData
<
State
<
T
,
IE
>>.
errorTransform
(transform:
LiveData
<
IE
>.() ->
LiveData
<
OE
>):
LiveData
<
State
<
T
,
OE
>>
Content copied to clipboard
errorValue
Link copied to clipboard
common
fun <
T
,
E
>
LiveData
<
State
<
T
,
E
>>.
errorValue
():
E
?
Content copied to clipboard
isEmptyState
Link copied to clipboard
common
fun <
T
,
E
>
LiveData
<
State
<
T
,
E
>>.
isEmptyState
():
LiveData
<
Boolean
>
Content copied to clipboard
fun <
T
,
E
,
ST
:
State
<
T
,
E
>,
LD
:
LiveData
<out
ST
>>
List
<
LD
>.
isEmptyState
():
LiveData
<
Boolean
>
Content copied to clipboard
isErrorState
Link copied to clipboard
common
fun <
T
,
E
>
LiveData
<
State
<
T
,
E
>>.
isErrorState
():
LiveData
<
Boolean
>
Content copied to clipboard
fun <
T
,
E
,
ST
:
State
<
T
,
E
>,
LD
:
LiveData
<out
ST
>>
List
<
LD
>.
isErrorState
():
LiveData
<
Boolean
>
Content copied to clipboard
isLoadingState
Link copied to clipboard
common
fun <
T
,
E
>
LiveData
<
State
<
T
,
E
>>.
isLoadingState
():
LiveData
<
Boolean
>
Content copied to clipboard
fun <
T
,
E
,
ST
:
State
<
T
,
E
>,
LD
:
LiveData
<out
ST
>>
List
<
LD
>.
isLoadingState
():
LiveData
<
Boolean
>
Content copied to clipboard
isSuccessState
Link copied to clipboard
common
fun <
T
,
E
>
LiveData
<
State
<
T
,
E
>>.
isSuccessState
():
LiveData
<
Boolean
>
Content copied to clipboard
fun <
T
,
E
,
ST
:
State
<
T
,
E
>,
LD
:
LiveData
<out
ST
>>
List
<
LD
>.
isSuccessState
():
LiveData
<
Boolean
>
Content copied to clipboard