Example usage for Java android.app Notification fields, constructors, methods, implement or subclass
The text is from its open source code.
String | INTENT_CATEGORY_NOTIFICATION_PREFERENCES An activity that provides a user interface for adjusting notification preferences for its containing application. |
int | DEFAULT_ALL Use all default values (where applicable). |
int | DEFAULT_SOUND Use the default notification sound. |
int | DEFAULT_VIBRATE Use the default notification vibrate. |
int | DEFAULT_LIGHTS Use the default notification lights. |
int | STREAM_DEFAULT Use this constant as the value for audioStreamType to request that the default stream type for notifications be used. |
int | FLAG_SHOW_LIGHTS Bit to be bitwise-ored into the #flags field that should be set if you want the LED on for this notification. |
int | FLAG_ONGOING_EVENT Bit to be bitwise-ored into the #flags field that should be set if this notification is in reference to something that is ongoing, like a phone call. |
int | FLAG_INSISTENT Bit to be bitwise-ored into the #flags field that if set, the audio will be repeated until the notification is cancelled or the notification window is opened. |
int | FLAG_ONLY_ALERT_ONCE Bit to be bitwise-ored into the #flags field that should be set if you would only like the sound, vibrate and ticker to be played if the notification was not already showing. |
int | FLAG_AUTO_CANCEL Bit to be bitwise-ored into the #flags field that should be set if the notification should be canceled when it is clicked by the user. |
int | FLAG_NO_CLEAR Bit to be bitwise-ored into the #flags field that should be set if the notification should not be canceled when the user clicks the Clear all button. |
int | FLAG_FOREGROUND_SERVICE Bit to be bitwise-ored into the #flags field that should be set if this notification represents a currently running service. |
int | FLAG_LOCAL_ONLY Bit to be bitswise-ored into the #flags field that should be set if this notification is relevant to the current device only and it is not recommended that it bridge to other devices. |
int | FLAG_GROUP_SUMMARY Bit to be bitswise-ored into the #flags field that should be set if this notification is the group summary for a group of notifications. |
int | flags |
int | PRIORITY_DEFAULT Default notification #priority . |
int | PRIORITY_LOW Lower #priority , for items that are less important. |
int | PRIORITY_MIN Lowest #priority ; these items might not be shown to the user except under special circumstances, such as detailed notification logs. |
int | PRIORITY_HIGH Higher #priority , for more important notifications or alerts. |
int | PRIORITY_MAX Highest #priority , for your application's most important items that require the user's prompt attention or input. |
int | COLOR_DEFAULT Special value of #color telling the system not to decorate this notification with any special color but instead use default colors when presenting this notification. |
int | VISIBILITY_PUBLIC Notification visibility: Show this notification in its entirety on all lockscreens. |
int | VISIBILITY_PRIVATE Notification visibility: Show this notification on all lockscreens, but conceal sensitive or private information on secure lockscreens. |
int | VISIBILITY_SECRET Notification visibility: Do not reveal any part of this notification on a secure lockscreen. |
String | CATEGORY_CALL Notification category: incoming call (voice or video) or similar synchronous communication request. |
String | CATEGORY_MESSAGE Notification category: incoming direct message (SMS, instant message, etc.). |
String | CATEGORY_EMAIL Notification category: asynchronous bulk message (email). |
String | CATEGORY_PROMO Notification category: promotion or advertisement. |
String | CATEGORY_ALARM Notification category: alarm or timer. |
String | CATEGORY_SOCIAL Notification category: social network or sharing update. |
String | CATEGORY_ERROR Notification category: error in background operation or authentication status. |
String | CATEGORY_TRANSPORT Notification category: media transport control for playback. |
String | CATEGORY_SYSTEM Notification category: system or device status update. |
String | CATEGORY_SERVICE Notification category: indication of running background service. |
String | CATEGORY_RECOMMENDATION Notification category: a specific, timely recommendation for a single thing. |
String | CATEGORY_STATUS Notification category: ongoing information about device or contextual status. |
String | CATEGORY_REMINDER Notification category: user-scheduled reminder. |
String | EXTRA_TITLE #extras key: this is the title of the notification, as supplied to Builder#setContentTitle(CharSequence) . |
String | EXTRA_TITLE_BIG #extras key: this is the title of the notification when shown in expanded form, e.g. |
String | EXTRA_TEXT #extras key: this is the main text payload, as supplied to Builder#setContentText(CharSequence) . |
String | EXTRA_SUB_TEXT #extras key: this is a third line of text, as supplied to Builder#setSubText(CharSequence) . |
String | EXTRA_INFO_TEXT #extras key: this is a small piece of additional text as supplied to Builder#setContentInfo(CharSequence) . |
String | EXTRA_SUMMARY_TEXT #extras key: this is a line of summary information intended to be shown alongside expanded notifications, as supplied to (e.g.) BigTextStyle#setSummaryText(CharSequence) . |
String | EXTRA_SMALL_ICON #extras key: this is the resource ID of the notification's main small icon, as supplied to Builder#setSmallIcon(int) . |
String | EXTRA_LARGE_ICON #extras key: this is a bitmap to be used instead of the small icon when showing the notification payload, as supplied to Builder#setLargeIcon(android.graphics.Bitmap) . |
String | EXTRA_PROGRESS #extras key: this is the progress value supplied to Builder#setProgress(int,int,boolean) . |
String | EXTRA_PROGRESS_MAX #extras key: this is the maximum value supplied to Builder#setProgress(int,int,boolean) . |
String | EXTRA_PROGRESS_INDETERMINATE #extras key: whether the progress bar is indeterminate, supplied to Builder#setProgress(int,int,boolean) . |
String | EXTRA_SHOW_CHRONOMETER #extras key: whether #when should be shown as a count-up timer (specifically a android.widget.Chronometer ) instead of a timestamp, as supplied to Builder#setUsesChronometer(boolean) . |
String | EXTRA_SHOW_WHEN #extras key: whether #when should be shown, as supplied to Builder#setShowWhen(boolean) . |
String | EXTRA_TEXT_LINES #extras key: An array of CharSequences to show in InboxStyle expanded notifications, each of which was supplied to InboxStyle#addLine(CharSequence) . |
String | EXTRA_PEOPLE #extras key: A String array containing the people that this notification relates to, each of which was supplied to Builder#addPerson(String) . |
String | EXTRA_BACKGROUND_IMAGE_URI #extras key: A android.content.ContentUris content URI pointing to an image that can be displayed in the background when the notification is selected. |
int | BADGE_ICON_SMALL If this notification is being shown as a badge, use the #getSmallIcon() to represent this notification. |
Notification() Constructs a Notification object with default values. | |
Notification(int icon, CharSequence tickerText, long when) Constructs a Notification object with the information needed to have a status bar icon without the standard expanded view. |
String | getChannelId() Returns the id of the channel this notification posts to. |
Class> | getClass() Returns the runtime class of this Object . |
String | getGroup() Get the key used to group this notification into a cluster or stack with other notifications on devices which support such rendering. |
String | getSortKey() Get a sort key that orders this notification among other notifications from the same package. |
int | hashCode() Returns a hash code value for the object. |
void | setLatestEventInfo(Context context, CharSequence contentTitle, CharSequence contentText, PendingIntent contentIntent) Sets the #contentView field to be a view with the standard "Latest Event" layout. |
String | toString() |