public class NotificationDialogFragment extends BaseDialogFragment<NotificationActionHandler>
A simple notification-dialog with a single, neutral "OK"-close-button.
controller| Constructor and Description |
|---|
NotificationDialogFragment() |
| Modifier and Type | Method and Description |
|---|---|
static NotificationDialogFragment |
createDialog(int titleID,
int messageID,
int notificationID)
Static method to conveniently initialize a
NotificationDialogFragment object. |
int |
getNotificationID()
This method returns the notification-id provided to this NotificationDialogFragment.
|
void |
onClick(android.content.DialogInterface dialog,
int which)
This method will be invoked when a button in the dialog is clicked.
|
void |
populateDialog(android.app.AlertDialog.Builder builder,
android.os.Bundle arguments)
Abstract method to populate the given builder-object with appropriate
content.
|
callInterceptor, getDialogTag, getViewInterceptor, isRegisterHandler, onAttach, onCreateDialog, setActionHandler, setRegisterHandler, setViewInterceptordismiss, dismissAllowingStateLoss, dump, getDialog, getShowsDialog, getTheme, isCancelable, onActivityCreated, onCancel, onCreate, onDestroyView, onDetach, onDismiss, onSaveInstanceState, onStart, onStop, setCancelable, setShowsDialog, setStyle, show, showequals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getEnterTransition, getExitTransition, getFragmentManager, getId, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onActivityResult, onConfigurationChanged, onContextItemSelected, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroy, onDestroyOptionsMenu, onHiddenChanged, onInflate, onInflate, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onTrimMemory, onViewCreated, onViewStateRestored, registerForContextMenu, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, startActivity, startActivity, startActivityForResult, startActivityForResult, toString, unregisterForContextMenuclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetActivity, getArgumentspublic void onClick(android.content.DialogInterface dialog,
int which)
dialog - The dialog that received the click.which - The button that was clicked (e.g. BUTTON1) or the position of the item clicked.public int getNotificationID()
public void populateDialog(android.app.AlertDialog.Builder builder,
android.os.Bundle arguments)
BaseDialogFragmentpopulateDialog in interface DialogFragmentInterfacepopulateDialog in class BaseDialogFragment<NotificationActionHandler>builder - The Builder-object that should be populated and represents the
actual dialogarguments - The arguments of the DialogFragment, as retrievable via getArguments().public static NotificationDialogFragment createDialog(int titleID, int messageID, int notificationID)
Static method to conveniently initialize a NotificationDialogFragment object.
This method initializes the dialog fragment with the given titleID, messageID and notificationID.