onRestoreInstanceState

open fun onRestoreInstanceState(@NonNull parent: @NonNull CoordinatorLayout, @NonNull child: @NonNull V, @NonNull state: @NonNull Parcelable)(source)

Hook allowing a behavior to re-apply a representation of its internal state that had previously been generated by onSaveInstanceState. This function will never be called with a null state.

Parameters

parent

the parent CoordinatorLayout

child

child view to restore from

state

The frozen state that had previously been returned by onSaveInstanceState.

See also