Saver
fun Saver(onCloseRequest: UseCaseState.() -> Unit?, onFinishedRequest: UseCaseState.() -> Unit?, onDismissRequest: UseCaseState.() -> Unit?): Saver<UseCaseState, *>
Saver implementation. Lambda functions need to be passed to new use-case state as they can not be serialized.
Parameters
onCloseRequest
The listener that is invoked when the dialog was closed through any cause.
onFinishedRequest
The listener that is invoked when the dialog's use-case was finished by the user accordingly (negative, positive, selection).
onDismissRequest
The listener that is invoked when the dialog was dismissed.