onFragmentMaxLifecyclePreUpdated
open fun onFragmentMaxLifecyclePreUpdated(@NonNull fragment: Fragment, @NonNull maxLifecycleState: Lifecycle.State): FragmentStateAdapter.FragmentTransactionCallback.OnPostEventListener
Called right before Fragment's maximum state is capped via setMaxLifecycle.
Return
Listener called after the operation
Parameters
fragment
Fragment to have its state capped
maxLifecycleState
Ceiling state for the fragment