Notification.Style
public
static
abstract
class
Notification.Style
extends Object
Known Direct Subclasses
Notification.BigPictureStyle |
Helper class for generating large-format notifications that include a large image attachment.
|
Notification.BigTextStyle |
Helper class for generating large-format notifications that include a lot of text.
|
Notification.DecoratedCustomViewStyle |
Notification style for custom views that are decorated by the system
Instead of providing a notification that is completely custom, a developer can set this
style and still obtain system decorations like the notification header with the expand
affordance and actions.
|
Notification.InboxStyle |
Helper class for generating large-format notifications that include a list of (up to 5) strings.
|
Notification.MediaStyle |
Notification style for media playback notifications.
|
Notification.MessagingStyle |
Helper class for generating large-format notifications that include multiple back-and-forth
messages of varying types between any number of people.
|
|
Known Indirect Subclasses
Notification.DecoratedMediaCustomViewStyle |
Notification style for media custom views that are decorated by the system
Instead of providing a media notification that is completely custom, a developer can set
this style and still obtain system decorations like the notification header with the expand
affordance and actions.
|
|
An object that can apply a rich notification style to a Notification.Builder
object.
Summary
Inherited methods |
From
class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long millis, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long millis)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
|
Fields
Public constructors
Notification.Style
Notification.Style ()
Public methods
Protected methods
checkBuilder
void checkBuilder ()
getStandardView
RemoteViews getStandardView (int layoutId)
internalSetBigContentTitle
void internalSetBigContentTitle (CharSequence title)
Overrides ContentTitle in the big form of the template.
This defaults to the value passed to setContentTitle().
Parameters |
title |
CharSequence
|
internalSetSummaryText
void internalSetSummaryText (CharSequence cs)
Set the first line of text after the detail section in the big form of the template.
Parameters |
cs |
CharSequence
|