Class MAMFragment
-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,android.content.ComponentCallbacks2,android.view.View.OnCreateContextMenuListener,com.microsoft.intune.mam.client.app.HookedFragment,com.microsoft.intune.mam.client.app.HookedFragmentBase
public class MAMFragment extends Fragment implements HookedFragmentMAM version of android.app.Fragment.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intTRIM_MEMORY_BACKGROUNDpublic final static intTRIM_MEMORY_COMPLETEpublic final static intTRIM_MEMORY_MODERATEpublic final static intTRIM_MEMORY_RUNNING_CRITICALpublic final static intTRIM_MEMORY_RUNNING_LOWpublic final static intTRIM_MEMORY_RUNNING_MODERATEpublic final static intTRIM_MEMORY_UI_HIDDEN
-
Constructor Summary
Constructors Constructor Description MAMFragment()
-
Method Summary
Modifier and Type Method Description final voidonAttach(Activity activity)final voidonAttach(Context context)final voidonActivityCreated(Bundle savedInstanceState)final voidonCreate(Bundle savedInstanceState)final voidonDestroy()final voidonDetach()final voidonPause()final voidonResume()final voidonStart()final voidonStop()final voidonActivityResult(int requestCode, int resultCode, Intent data)final AnimatoronCreateAnimator(int transit, boolean enter, int nextAnim)final voidonCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo)final voidonCreateOptionsMenu(Menu menu, MenuInflater inflater)final ViewonCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)final voidonDestroyOptionsMenu()voidonDestroyView()final voidonViewCreated(View view, Bundle savedInstanceState)final voidonViewStateRestored(Bundle savedInstanceState)final voidonSaveInstanceState(Bundle outState)voidonMAMActivityCreated(Bundle savedInstanceState)MAM version of onActivityCreated. voidonMAMAttach(Activity activity)MAM version of onAttach. voidonMAMAttach(Context context)MAM version of onAttach. voidonMAMCreate(Bundle savedInstanceState)MAM version of onCreate. voidonMAMDestroy()MAM version of onDestroy. voidonMAMDetach()MAM version of onDetach. voidonMAMPause()MAM version of onPause. voidonMAMResume()MAM version on onResume. voidonMAMStart()MAM version of onStart. voidonMAMStop()MAM version of onStop. voidonMAMActivityResult(int requestCode, int resultCode, Intent data)MAM version of onActivityResult. AnimatoronMAMCreateAnimator(int transit, boolean enter, int nextAnim)MAM version of onCreateAnimator. voidonMAMCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo)MAM version of onCreateContextMenu. voidonMAMCreateOptionsMenu(Menu menu, MenuInflater inflater)MAM version of onCreateOptionsMenu. ViewonMAMCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)MAM version of onCreateView. voidonMAMDestroyOptionsMenu()MAM version of onDestroyOptionsMenu. voidonMAMDestroyView()MAM version of onDestroyView. voidonMAMViewCreated(View view, Bundle savedInstanceState)MAM version of onViewCreated. voidonMAMViewStateRestored(Bundle savedInstanceState)MAM version of onViewStateRestored. voidonMAMSaveInstanceState(Bundle outState)MAM version of onSaveInstanceState. -
Methods inherited from class android.app.Fragment
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isStateSaved, isVisible, onAttachFragment, onConfigurationChanged, onContextItemSelected, onGetLayoutInflater, onHiddenChanged, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onTrimMemory, postponeEnterTransition, registerForContextMenu, requestPermissions, 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
-
onAttach
final void onAttach(Activity activity)
-
onAttach
@RequiresApi(value = Build.VERSION_CODES.M) final void onAttach(Context context)
-
onActivityCreated
final void onActivityCreated(Bundle savedInstanceState)
-
onCreate
final void onCreate(Bundle savedInstanceState)
-
onDestroy
final void onDestroy()
-
onDetach
final void onDetach()
-
onPause
final void onPause()
-
onResume
final void onResume()
-
onStart
final void onStart()
-
onStop
final void onStop()
-
onActivityResult
final void onActivityResult(int requestCode, int resultCode, Intent data)
-
onCreateAnimator
final Animator onCreateAnimator(int transit, boolean enter, int nextAnim)
-
onCreateContextMenu
final void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo)
-
onCreateOptionsMenu
final void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
-
onCreateView
final View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
-
onDestroyOptionsMenu
final void onDestroyOptionsMenu()
-
onDestroyView
void onDestroyView()
-
onViewCreated
final void onViewCreated(View view, Bundle savedInstanceState)
-
onViewStateRestored
final void onViewStateRestored(Bundle savedInstanceState)
-
onSaveInstanceState
final void onSaveInstanceState(Bundle outState)
-
onMAMActivityCreated
void onMAMActivityCreated(Bundle savedInstanceState)
MAM version of onActivityCreated.
- Parameters:
savedInstanceState- saved instance state
-
onMAMAttach
void onMAMAttach(Activity activity)
MAM version of onAttach.
- Parameters:
activity- activity
-
onMAMAttach
@RequiresApi(value = Build.VERSION_CODES.M) void onMAMAttach(Context context)
MAM version of onAttach.
- Parameters:
context- context
-
onMAMCreate
void onMAMCreate(Bundle savedInstanceState)
MAM version of onCreate.
- Parameters:
savedInstanceState- saved instance state
-
onMAMDestroy
void onMAMDestroy()
MAM version of onDestroy.
-
onMAMDetach
void onMAMDetach()
MAM version of onDetach.
-
onMAMPause
void onMAMPause()
MAM version of onPause.
-
onMAMResume
void onMAMResume()
MAM version on onResume.
-
onMAMStart
void onMAMStart()
MAM version of onStart.
-
onMAMStop
void onMAMStop()
MAM version of onStop.
-
onMAMActivityResult
void onMAMActivityResult(int requestCode, int resultCode, Intent data)
MAM version of onActivityResult.
- Parameters:
requestCode- see Fragment.resultCode- see Fragment.data- see Fragment.
-
onMAMCreateAnimator
Animator onMAMCreateAnimator(int transit, boolean enter, int nextAnim)
MAM version of onCreateAnimator.
- Parameters:
transit- see Fragment.enter- see Fragment.nextAnim- see Fragment.- Returns:
animator
-
onMAMCreateContextMenu
void onMAMCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo)
MAM version of onCreateContextMenu.
- Parameters:
menu- see Fragment.v- see Fragment.menuInfo- see Fragment.
-
onMAMCreateOptionsMenu
void onMAMCreateOptionsMenu(Menu menu, MenuInflater inflater)
MAM version of onCreateOptionsMenu.
- Parameters:
menu- see Fragment.inflater- see Fragment.
-
onMAMCreateView
View onMAMCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
MAM version of onCreateView.
- Parameters:
inflater- see Fragment.container- see Fragment.savedInstanceState- see Fragment.- Returns:
see Fragment.onCreateView
-
onMAMDestroyOptionsMenu
void onMAMDestroyOptionsMenu()
MAM version of onDestroyOptionsMenu.
-
onMAMDestroyView
void onMAMDestroyView()
MAM version of onDestroyView.
-
onMAMViewCreated
void onMAMViewCreated(View view, Bundle savedInstanceState)
MAM version of onViewCreated.
- Parameters:
view- see Fragment.savedInstanceState- see Fragment.
-
onMAMViewStateRestored
void onMAMViewStateRestored(Bundle savedInstanceState)
MAM version of onViewStateRestored.
- Parameters:
savedInstanceState- see Fragment.
-
onMAMSaveInstanceState
void onMAMSaveInstanceState(Bundle outState)
MAM version of onSaveInstanceState.
- Parameters:
outState- see Fragment.
-
-
-
-