public abstract static class Notification.Style extends Object
Notification.Builder
object.Modifier and Type | Field and Description |
---|---|
protected Notification.Builder |
mBuilder |
protected CharSequence |
mSummaryText |
protected boolean |
mSummaryTextSet |
Constructor and Description |
---|
Style() |
Modifier and Type | Method and Description |
---|---|
void |
addExtras(Bundle extras)
Apply any style-specific extras to this notification before shipping it out.
|
Notification |
build()
Calls
Notification.Builder.build() on the Builder this Style is
attached to. |
Notification |
buildStyled(Notification wip) |
protected void |
checkBuilder() |
boolean |
displayCustomViewInline() |
protected RemoteViews |
getStandardView(int layoutId) |
protected boolean |
hasProgress() |
boolean |
hasSummaryInHeader() |
protected void |
internalSetBigContentTitle(CharSequence title)
Overrides ContentTitle in the big form of the template.
|
protected void |
internalSetSummaryText(CharSequence cs)
Set the first line of text after the detail section in the big form of the template.
|
RemoteViews |
makeBigContentView()
Construct a Style-specific RemoteViews for the final big notification layout.
|
RemoteViews |
makeContentView()
Construct a Style-specific RemoteViews for the final 1U notification layout.
|
RemoteViews |
makeHeadsUpContentView()
Construct a Style-specific RemoteViews for the final HUN layout.
|
void |
purgeResources() |
protected void |
restoreFromExtras(Bundle extras)
Reconstruct the internal state of this Style object from extras.
|
void |
setBuilder(Notification.Builder builder) |
protected CharSequence mSummaryText
protected boolean mSummaryTextSet
protected Notification.Builder mBuilder
protected void internalSetBigContentTitle(CharSequence title)
protected void internalSetSummaryText(CharSequence cs)
public void setBuilder(Notification.Builder builder)
protected void checkBuilder()
protected RemoteViews getStandardView(int layoutId)
public RemoteViews makeContentView()
public RemoteViews makeBigContentView()
public RemoteViews makeHeadsUpContentView()
public void addExtras(Bundle extras)
protected void restoreFromExtras(Bundle extras)
public Notification buildStyled(Notification wip)
public void purgeResources()
public Notification build()
Notification.Builder.build()
on the Builder this Style is
attached to.protected boolean hasProgress()
public boolean hasSummaryInHeader()
public boolean displayCustomViewInline()