Class AngularNativeBottomSheetFragment
-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,android.content.DialogInterface.OnCancelListener,android.content.DialogInterface.OnDismissListener,android.view.View.OnCreateContextMenuListener,androidx.activity.contextaware.ContextAware,androidx.activity.result.ActivityResultCaller,androidx.lifecycle.HasDefaultViewModelProviderFactory,androidx.lifecycle.LifecycleOwner,androidx.lifecycle.ViewModelStoreOwner,androidx.savedstate.SavedStateRegistryOwner,io.github.angularwave.android.core.bridge.BridgeDestination,io.github.angularwave.android.navigation.destinations.AngularNativeDestination,io.github.angularwave.android.navigation.destinations.AngularNativeDialogDestination
public abstract class AngularNativeBottomSheetFragment extends BottomSheetDialogFragment implements AngularNativeDestination, AngularNativeDialogDestination
The base class from which all bottom sheet native fragments in a AngularNative app should extend from.
For web bottom sheet fragments, refer to AngularNativeWebBottomSheetFragment.
-
-
Field Summary
Fields Modifier and Type Field Description private final Navigatornavigatorpublic final StringmPreviousWhoprivate final Lifecyclelifecycleprivate final ViewModelStoreviewModelStoreprivate final ViewModelProvider.FactorydefaultViewModelProviderFactoryprivate final CreationExtrasdefaultViewModelCreationExtrasprivate final SavedStateRegistrysavedStateRegistryprivate final Fragmentfragmentprivate final Stringlocationprivate final HashMap<String, Object>pathPropertiesprivate final AngularNativeFragmentViewModelfragmentViewModelprivate final BooleanisActiveprivate final BooleanisModal
-
Constructor Summary
Constructors Constructor Description AngularNativeBottomSheetFragment()
-
Method Summary
Modifier and Type Method Description NavigatorgetNavigator()Gets the navigator instance associated with this destination. UnitonCreate(Bundle savedInstanceState)UnitonViewCreated(View view, Bundle savedInstanceState)UnitonDestroyView()final UnitonActivityCreated(Bundle savedInstanceState)This is marked finalto prevent further use, as it's now deprecated in AndroidX's Fragment implementation.final UnitonActivityResult(Integer requestCode, Integer resultCode, Intent intent)This is marked finalto prevent further use, as it's now deprecated in AndroidX's Fragment implementation.UnitonStart()UnitonStop()UnitonCancel(DialogInterface dialog)UnitonDismiss(DialogInterface dialog)UnitcloseDialog()UnitonBeforeNavigation()Called before any navigation action takes places. Unitrefresh(Boolean displayProgress)Refresh the destination's contents. UnitprepareNavigation(Function0<Unit> onReady)ToolbartoolbarForNavigation()Gets the Toolbar instance in your Fragment's view for use with navigation. final AngularNativeFragmentDelegatedelegate()Gets the delegate instance that handles the Fragment's lifecycle events. -
Methods inherited from class androidx.fragment.app.Fragment
addOnContextAvailableListener, dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelCreationExtras, getDefaultViewModelProviderFactory, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getParentFragmentManager, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSavedStateRegistry, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hasOptionsMenu, hashCode, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroy, onDestroyOptionsMenu, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, peekAvailableContext, postponeEnterTransition, postponeEnterTransition, registerForActivityResult, registerForActivityResult, registerForContextMenu, removeOnContextAvailableListener, requestPermissions, requireActivity, requireArguments, requireContext, requireFragmentManager, requireHost, requireParentFragment, requireView, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu -
Methods inherited from class io.github.angularwave.android.navigation.destinations.AngularNativeDestination
activityPermissionResultLauncher, activityResultLauncher, bridgeWebViewIsReady, cancelNativeActivity, cancelNativePermission, customNavigationOptions, customNavigatorForNavigation, customRouteDecision, getFragment, getFragmentViewModel, getLocation, getPathProperties, isActive, isModal, launchNativeActivity, launchNativePermission, shouldObserveTitleChanges -
Methods inherited from class io.github.angularwave.android.core.bridge.BridgeDestination
onBridgeComponentInitialized -
Methods inherited from class androidx.fragment.app.DialogFragment
dismissNow, getDialog, getShowsDialog, getTheme, isCancelable, onAttach, onDetach, onGetLayoutInflater, onSaveInstanceState, onViewStateRestored, requireComponentDialog, requireDialog, setCancelable, setShowsDialog, setStyle, show, show, showNow -
Methods inherited from class com.google.android.material.bottomsheet.BottomSheetDialogFragment
dismiss, dismissAllowingStateLoss, onCreateDialog -
Methods inherited from class androidx.appcompat.app.AppCompatDialogFragment
setupDialog -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getNavigator
Navigator getNavigator()
Gets the navigator instance associated with this destination.
-
onViewCreated
Unit onViewCreated(View view, Bundle savedInstanceState)
-
onDestroyView
Unit onDestroyView()
-
onActivityCreated
final Unit onActivityCreated(Bundle savedInstanceState)
This is marked
finalto prevent further use, as it's now deprecated in AndroidX's Fragment implementation.Use onViewCreated for code touching the Fragment's view and onCreate for other initialization.
-
onActivityResult
final Unit onActivityResult(Integer requestCode, Integer resultCode, Intent intent)
This is marked
finalto prevent further use, as it's now deprecated in AndroidX's Fragment implementation.Use registerForActivityResult with the appropriate androidx.activity.result.contract.ActivityResultContract and its callback.
WebNavigation provides the AngularNativeDestination.activityResultLauncher interface to obtain registered result launchers from any destination.
-
onCancel
Unit onCancel(DialogInterface dialog)
-
onDismiss
Unit onDismiss(DialogInterface dialog)
-
closeDialog
Unit closeDialog()
-
onBeforeNavigation
Unit onBeforeNavigation()
Called before any navigation action takes places. This is a useful place for state cleanup in your Fragment if necessary.
-
refresh
Unit refresh(Boolean displayProgress)
Refresh the destination's contents.
- Parameters:
displayProgress- Whether progress should be displayed while refreshing.
-
prepareNavigation
Unit prepareNavigation(Function0<Unit> onReady)
-
toolbarForNavigation
Toolbar toolbarForNavigation()
Gets the Toolbar instance in your Fragment's view for use with navigation. The title in the Toolbar will automatically be updated if a title is available. By default, WebNavigation will look for a Toolbar with resource ID
R.id.toolbar. Override to provide a Toolbar instance with a different ID.
-
delegate
final AngularNativeFragmentDelegate delegate()
Gets the delegate instance that handles the Fragment's lifecycle events.
-
-
-
-