Class AdaptiveCallbackFragment
- java.lang.Object
-
- androidx.fragment.app.Fragment
-
- org.forgerock.android.auth.ui.callback.AdaptiveCallbackFragment
-
- All Implemented Interfaces:
android.content.ComponentCallbacks,android.view.View.OnCreateContextMenuListener,androidx.lifecycle.HasDefaultViewModelProviderFactory,androidx.lifecycle.LifecycleOwner,androidx.lifecycle.ViewModelStoreOwner,androidx.savedstate.SavedStateRegistryOwner,AuthenticationExceptionListener,CallbackController
public class AdaptiveCallbackFragment extends androidx.fragment.app.Fragment implements AuthenticationExceptionListener, CallbackController
This Callback Fragment having the ability to change to suit different callback conditions. The parent Fragment for allCallbackFragment
-
-
Constructor Summary
Constructors Constructor Description AdaptiveCallbackFragment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel(java.lang.Exception e)Cancel the current authenticationvoidnext()Move to the next node in the treevoidonAttach(android.content.Context context)voidonAuthenticationException(org.forgerock.android.auth.exception.AuthenticationException e)voidonCreate(android.os.Bundle savedInstanceState)android.view.ViewonCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)voidonDataCollected(org.forgerock.android.auth.callback.Callback callback)Notify when callback data are collected.voidonDetach()voidsuspend()Suspend the current authentication-
Methods inherited from class androidx.fragment.app.Fragment
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, 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, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDestroyView, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, onSaveInstanceState, onStart, onStop, onViewCreated, onViewStateRestored, postponeEnterTransition, postponeEnterTransition, registerForContextMenu, 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
-
-
-
-
Method Detail
-
onCreate
public void onCreate(android.os.Bundle savedInstanceState)
- Overrides:
onCreatein classandroidx.fragment.app.Fragment
-
onAttach
public void onAttach(android.content.Context context)
- Overrides:
onAttachin classandroidx.fragment.app.Fragment
-
onCreateView
public android.view.View onCreateView(@NonNull android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)- Overrides:
onCreateViewin classandroidx.fragment.app.Fragment
-
onAuthenticationException
public void onAuthenticationException(org.forgerock.android.auth.exception.AuthenticationException e)
- Specified by:
onAuthenticationExceptionin interfaceAuthenticationExceptionListener
-
onDetach
public void onDetach()
- Overrides:
onDetachin classandroidx.fragment.app.Fragment
-
onDataCollected
public void onDataCollected(org.forgerock.android.auth.callback.Callback callback)
Description copied from interface:CallbackControllerNotify when callback data are collected.- Specified by:
onDataCollectedin interfaceCallbackController- Parameters:
callback- The Callback
-
cancel
public void cancel(java.lang.Exception e)
Description copied from interface:CallbackControllerCancel the current authentication- Specified by:
cancelin interfaceCallbackController- Parameters:
e- Exception when cancelling the authentication process.
-
suspend
public void suspend()
Description copied from interface:CallbackControllerSuspend the current authentication- Specified by:
suspendin interfaceCallbackController
-
next
public void next()
Description copied from interface:CallbackControllerMove to the next node in the tree- Specified by:
nextin interfaceCallbackController
-
-