getRestoreHandler
Override to provide custom restore handling. Return null (default) to use SDK's default restore behavior.
From Kotlin:
override fun getRestoreHandler() = RestoreHandler { onStart, onFinish ->
onStart()
// your custom restore logic
onFinish()
}Content copied to clipboard
From Java:
@Override
public RestoreHandler getRestoreHandler() {
return (onStart, onFinish) -> {
onStart.invoke();
// your custom restore logic
onFinish.invoke();
};
}Content copied to clipboard