OnScreenResultListener


public interface OnScreenResultListener


A listener to provide the result set by a Screen.

Summary

Public methods

abstract void

Provides the result from the Screen that was pushed using pushForResult, or null if no result was set.

Public methods

onScreenResult

Added in 1.0.0
abstract void onScreenResult(@Nullable Object result)

Provides the result from the Screen that was pushed using pushForResult, or null if no result was set.

This callback will be called right before the androidx.lifecycle.Lifecycle.State of the Screen that set the result becomes DESTROYED.

Parameters
@Nullable Object result

the result provided by the Screen that was pushed using pushForResult or null if no result was set

See also
setResult