Class AdaptiveCallbackFragment
-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,android.view.View.OnCreateContextMenuListener,androidx.activity.result.ActivityResultCaller,androidx.lifecycle.HasDefaultViewModelProviderFactory,androidx.lifecycle.LifecycleOwner,androidx.lifecycle.ViewModelStoreOwner,androidx.savedstate.SavedStateRegistryOwner,org.forgerock.android.auth.ui.AuthenticationExceptionListener,org.forgerock.android.auth.ui.callback.CallbackController
public class AdaptiveCallbackFragment extends Fragment implements AuthenticationExceptionListener, CallbackController
This Callback Fragment having the ability to change to suit different callback conditions. The parent Fragment for all CallbackFragment
-
-
Field Summary
Fields Modifier and Type Field Description public StringmPreviousWho
-
Constructor Summary
Constructors Constructor Description AdaptiveCallbackFragment()
-
Method Summary
Modifier and Type Method Description voidonCreate(Bundle savedInstanceState)voidonAttach(Context context)ViewonCreateView(@NonNull() LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)voidonAuthenticationException(AuthenticationException e)voidonDetach()voidonDataCollected(Callback callback)Notify when callback data are collected. voidcancel(Exception e)Cancel the current authentication voidsuspend()Suspend the current authentication voidnext()Move to the next node in the tree -
Methods inherited from class androidx.fragment.app.Fragment
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelCreationExtras, getDefaultViewModelProviderFactory, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getParentFragmentManager, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSavedStateRegistry, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hasOptionsMenu, hashCode, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDestroyView, onGetLayoutInflater, onHiddenChanged, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, onSaveInstanceState, onStart, onStop, onViewCreated, onViewStateRestored, postponeEnterTransition, registerForActivityResult, 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, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onCreateView
View onCreateView(@NonNull() LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
-
onAuthenticationException
void onAuthenticationException(AuthenticationException e)
-
onDetach
void onDetach()
-
onDataCollected
void onDataCollected(Callback callback)
Notify when callback data are collected.
- Parameters:
callback- The Callback
-
cancel
void cancel(Exception e)
Cancel the current authentication
- Parameters:
e- Exception when cancelling the authentication process.
-
suspend
void suspend()
Suspend the current authentication
-
next
void next()
Move to the next node in the tree
-
-
-
-