diff options
author | Dan Sandler <dsandler@android.com> | 2014-05-15 09:36:47 -0400 |
---|---|---|
committer | Dan Sandler <dsandler@android.com> | 2014-05-22 01:36:46 -0400 |
commit | 842dd77bb9c002af5364237f46b63c826f1c4082 (patch) | |
tree | f6834814e795cd439ac16ed163ae020b616d29f3 /api | |
parent | 7de53d693eb4b70431514481d9da30b80f007939 (diff) | |
download | frameworks_base-842dd77bb9c002af5364237f46b63c826f1c4082.zip frameworks_base-842dd77bb9c002af5364237f46b63c826f1c4082.tar.gz frameworks_base-842dd77bb9c002af5364237f46b63c826f1c4082.tar.bz2 |
Introducing Notification.MediaStyle.
Allows you to create a nice music player with all the
trimmings, including:
* up to 5 actions in the bigContentView, styled as
transport control buttons
* up to 2 of those actions in the 1U (!)
* a nice custom progress bar
* a tinted background (taken from your Notification.color)
* a special place to put your MediaSessionToken
Bug: 15147533
Change-Id: Ic20a2b369eb6c5fe4853987a44ffd9bace720c7f
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index 18eb3d8..df6005d 100644 --- a/api/current.txt +++ b/api/current.txt @@ -4456,6 +4456,7 @@ package android.app { field public static final java.lang.String EXTRA_INFO_TEXT = "android.infoText"; field public static final java.lang.String EXTRA_LARGE_ICON = "android.largeIcon"; field public static final java.lang.String EXTRA_LARGE_ICON_BIG = "android.largeIcon.big"; + field public static final java.lang.String EXTRA_MEDIA_SESSION = "android.mediaSession"; field public static final java.lang.String EXTRA_PEOPLE = "android.people"; field public static final java.lang.String EXTRA_PICTURE = "android.picture"; field public static final java.lang.String EXTRA_PROGRESS = "android.progress"; @@ -4624,6 +4625,14 @@ package android.app { method public android.app.Notification.InboxStyle setSummaryText(java.lang.CharSequence); } + public static class Notification.MediaStyle extends android.app.Notification.Style { + ctor public Notification.MediaStyle(); + ctor public Notification.MediaStyle(android.app.Notification.Builder); + method public android.app.Notification buildStyled(android.app.Notification); + method public android.app.Notification.MediaStyle setMediaSession(android.media.session.MediaSessionToken); + method public android.app.Notification.MediaStyle setShowActionsInCompactView(int...); + } + public static abstract class Notification.Style { ctor public Notification.Style(); method public android.app.Notification build(); |