toggle menu
RTVI Client
androidJvm
switch theme
search in API
rtvi-client-android
/
ai.rtvi.client.result
/
orError
or
Error
inline
fun
<
V
,
E
>
Result
<
V
,
E
>
.
orError
(
onError
:
(
E
)
->
Nothing
)
:
V
Kotlin convenience method: return the value if Ok, otherwise invoke the callback with the error.