-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,android.content.ComponentCallbacks2,android.content.DialogInterface.OnCancelListener,android.content.DialogInterface.OnDismissListener,android.view.View.OnCreateContextMenuListener,android.view.View.OnTouchListener
public class MessageFragment extends DialogFragment implements View.OnTouchListener
An extension of android.app.DialogFragment used to display in-app messages with custom locations and dimensions.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intSTYLE_NORMALpublic final static intSTYLE_NO_FRAMEpublic final static intSTYLE_NO_INPUTpublic final static intSTYLE_NO_TITLEpublic 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
-
Method Summary
Modifier and Type Method Description voidsetAEPMessage(AEPMessage message)Setter for AEPMessage AEPMessagegetAEPMessage()Getter for AEPMessagebooleanisDismissedWithGesture()Getter for gesture dismissal status. voidonAttach(Context context)voidonCreate(Bundle savedInstanceState)voidonActivityCreated(Bundle savedInstanceState)voidonDestroyView()voidonDetach()booleanonTouch(View view, MotionEvent motionEvent)intshow(FragmentTransaction transaction, String tag)Show this MessageFragment voiddismiss()Dismiss this MessageFragment Map<MessageGesture, String>getGestures()GestureDetectorgetGestureDetector()WebViewGestureListenergetWebViewGestureListener()-
Methods inherited from class android.app.DialogFragment
dismissAllowingStateLoss, dump, getDialog, getShowsDialog, getTheme, isCancelable, onCancel, onCreateDialog, onDismiss, onGetLayoutInflater, onSaveInstanceState, onStart, onStop, setCancelable, setShowsDialog, setStyle, show -
Methods inherited from class android.app.Fragment
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, onActivityResult, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroy, onDestroyOptionsMenu, onHiddenChanged, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onTrimMemory, onViewCreated, onViewStateRestored, 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
-
setAEPMessage
void setAEPMessage(AEPMessage message)
Setter for AEPMessage
- Parameters:
message- instance ofAEPMessage
-
getAEPMessage
AEPMessage getAEPMessage()
Getter for
AEPMessage
-
isDismissedWithGesture
boolean isDismissedWithGesture()
Getter for gesture dismissal status.
-
onActivityCreated
void onActivityCreated(Bundle savedInstanceState)
-
onDestroyView
void onDestroyView()
-
onDetach
void onDetach()
-
onTouch
boolean onTouch(View view, MotionEvent motionEvent)
-
show
int show(FragmentTransaction transaction, String tag)
Show this MessageFragment
-
dismiss
void dismiss()
Dismiss this MessageFragment
-
getGestures
Map<MessageGesture, String> getGestures()
-
getGestureDetector
GestureDetector getGestureDetector()
-
getWebViewGestureListener
WebViewGestureListener getWebViewGestureListener()
-
-
-
-