public class NotificationCompat extends NotificationCompat
NotificationCompat
which supports
NotificationCompat.MediaStyle
,
NotificationCompat.DecoratedCustomViewStyle
,
and NotificationCompat.DecoratedMediaCustomViewStyle
.
You should start using this variant if you need support any of these styles.Modifier and Type | Class and Description |
---|---|
static class |
NotificationCompat.Builder
See
NotificationCompat . |
static class |
NotificationCompat.DecoratedCustomViewStyle
Notification style for custom views that are decorated by the system.
|
static class |
NotificationCompat.DecoratedMediaCustomViewStyle
Notification style for media custom views that are decorated by the system.
|
static class |
NotificationCompat.MediaStyle
Notification style for media playback notifications.
|
NotificationCompat.Action, NotificationCompat.BigPictureStyle, NotificationCompat.BigTextStyle, NotificationCompat.BuilderExtender, NotificationCompat.CarExtender, NotificationCompat.Extender, NotificationCompat.InboxStyle, NotificationCompat.MessagingStyle, NotificationCompat.Style, NotificationCompat.WearableExtender
CATEGORY_ALARM, CATEGORY_CALL, CATEGORY_EMAIL, CATEGORY_ERROR, CATEGORY_EVENT, CATEGORY_MESSAGE, CATEGORY_PROGRESS, CATEGORY_PROMO, CATEGORY_RECOMMENDATION, CATEGORY_REMINDER, CATEGORY_SERVICE, CATEGORY_SOCIAL, CATEGORY_STATUS, CATEGORY_SYSTEM, CATEGORY_TRANSPORT, COLOR_DEFAULT, DEFAULT_ALL, DEFAULT_LIGHTS, DEFAULT_SOUND, DEFAULT_VIBRATE, EXTRA_BACKGROUND_IMAGE_URI, EXTRA_BIG_TEXT, EXTRA_COMPACT_ACTIONS, EXTRA_CONVERSATION_TITLE, EXTRA_INFO_TEXT, EXTRA_LARGE_ICON, EXTRA_LARGE_ICON_BIG, EXTRA_MEDIA_SESSION, EXTRA_MESSAGES, EXTRA_PEOPLE, EXTRA_PICTURE, EXTRA_PROGRESS, EXTRA_PROGRESS_INDETERMINATE, EXTRA_PROGRESS_MAX, EXTRA_REMOTE_INPUT_HISTORY, EXTRA_SELF_DISPLAY_NAME, EXTRA_SHOW_CHRONOMETER, EXTRA_SHOW_WHEN, EXTRA_SMALL_ICON, EXTRA_SUB_TEXT, EXTRA_SUMMARY_TEXT, EXTRA_TEMPLATE, EXTRA_TEXT, EXTRA_TEXT_LINES, EXTRA_TITLE, EXTRA_TITLE_BIG, FLAG_AUTO_CANCEL, FLAG_FOREGROUND_SERVICE, FLAG_GROUP_SUMMARY, FLAG_HIGH_PRIORITY, FLAG_INSISTENT, FLAG_LOCAL_ONLY, FLAG_NO_CLEAR, FLAG_ONGOING_EVENT, FLAG_ONLY_ALERT_ONCE, FLAG_SHOW_LIGHTS, PRIORITY_DEFAULT, PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_MAX, PRIORITY_MIN, STREAM_DEFAULT, VISIBILITY_PRIVATE, VISIBILITY_PUBLIC, VISIBILITY_SECRET
Constructor and Description |
---|
NotificationCompat() |
Modifier and Type | Method and Description |
---|---|
static MediaSessionCompat.Token |
getMediaSession(Notification notification)
Extracts a
MediaSessionCompat.Token from the extra values
in the NotificationCompat.MediaStyle notification . |
getAction, getActionCount, getCategory, getExtras, getGroup, getLocalOnly, getSortKey, isGroupSummary
public static MediaSessionCompat.Token getMediaSession(Notification notification)
MediaSessionCompat.Token
from the extra values
in the NotificationCompat.MediaStyle
notification
.notification
- The notification to extract a MediaSessionCompat.Token
from.MediaSessionCompat.Token
in the notification
if it contains,
null otherwise.