Notification.Style

public static abstract class Notification.Style
extends Object

java.lang.Object
   ↳ android.app.Notification.Style


An object that can apply a rich notification style to a Notification.Builder object.

Summary

Fields

protected Notification.Builder mBuilder

Public constructors

Notification.Style()

Public methods

Notification build()

Calls Notification.Builder.build() on the Builder this Style is attached to.

void setBuilder(Notification.Builder builder)

Protected methods

void checkBuilder()
RemoteViews getStandardView(int layoutId)
void internalSetBigContentTitle(CharSequence title)

Overrides ContentTitle in the big form of the template.

void internalSetSummaryText(CharSequence cs)

Set the first line of text after the detail section in the big form of the template.

Inherited methods

Fields

mBuilder

added in API level 16
protected Notification.Builder mBuilder

Public constructors

Notification.Style

added in API level 16
public Notification.Style ()

Public methods

build

added in API level 16
public Notification build ()

Calls Notification.Builder.build() on the Builder this Style is attached to.

Returns
Notification the fully constructed Notification.

setBuilder

added in API level 16
public void setBuilder (Notification.Builder builder)

Parameters
builder Notification.Builder

Protected methods

checkBuilder

added in API level 16
protected void checkBuilder ()

getStandardView

added in API level 16
protected RemoteViews getStandardView (int layoutId)

Parameters
layoutId int

Returns
RemoteViews

internalSetBigContentTitle

added in API level 16
protected 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

added in API level 16
protected void internalSetSummaryText (CharSequence cs)

Set the first line of text after the detail section in the big form of the template.

Parameters
cs CharSequence