Class AngularNativeFragmentDelegate
-
- All Implemented Interfaces:
public final class AngularNativeFragmentDelegateProvides all the hooks for a Fragment to delegate its lifecycle events to this class. Note: This class should not need to be used directly from within your app.
-
-
Constructor Summary
Constructors Constructor Description AngularNativeFragmentDelegate(AngularNativeDestination navDestination)
-
Method Summary
Modifier and Type Method Description final UnitprepareNavigation(Function0<Unit> onReady)final UnitonViewCreated()Should be called by the implementing Fragment during Fragment.onViewCreated.final UnitonStart()Should be called by the implementing Fragment during androidx.fragment.app.Fragment.onStart. final UnitonStop()Should be called by the implementing Fragment during androidx.fragment.app.Fragment.onStop. final UnitonStartAfterDialogCancel()Provides a hook when the Fragment has been started again after a dialog has been dismissed/canceled and no result is passed back. final UnitonStartAfterModalResult(SessionModalResult result)Provides a hook when a Fragment has been started again after receiving a modal result. final UnitonDialogCancel()Provides a hook when the dialog has been canceled. final UnitonDialogDismiss()Provides a hook when the dialog has been dismissed. -
-
Constructor Detail
-
AngularNativeFragmentDelegate
AngularNativeFragmentDelegate(AngularNativeDestination navDestination)
-
-
Method Detail
-
prepareNavigation
final Unit prepareNavigation(Function0<Unit> onReady)
-
onViewCreated
final Unit onViewCreated()
Should be called by the implementing Fragment during
Fragment.onViewCreated.
-
onStart
final Unit onStart()
Should be called by the implementing Fragment during androidx.fragment.app.Fragment.onStart.
-
onStop
final Unit onStop()
Should be called by the implementing Fragment during androidx.fragment.app.Fragment.onStop.
-
onStartAfterDialogCancel
final Unit onStartAfterDialogCancel()
Provides a hook when the Fragment has been started again after a dialog has been dismissed/canceled and no result is passed back.
-
onStartAfterModalResult
final Unit onStartAfterModalResult(SessionModalResult result)
Provides a hook when a Fragment has been started again after receiving a modal result. Will navigate if the result indicates it should.
-
onDialogCancel
final Unit onDialogCancel()
Provides a hook when the dialog has been canceled. If there is a modal result, an event will be created in SessionViewModel that can be observed.
-
onDialogDismiss
final Unit onDialogDismiss()
Provides a hook when the dialog has been dismissed.
-
-
-
-