Skip to content

Most visited

Recently visited

navigation
Added in API level 16

Notification.Style

public static abstract class Notification.Style
extends Object

java.lang.Object
   ↳ android.app.Notification.Style
Known Direct Subclasses


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 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

From class java.lang.Object

Fields

mBuilder

Added in API level 16
Notification.Builder mBuilder

Public constructors

Notification.Style

Added in API level 16
Notification.Style ()

Public methods

build

Added in API level 16
Notification build ()

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

Returns
Notification the fully constructed Notification.

setBuilder

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

Parameters
builder Notification.Builder

Protected methods

checkBuilder

Added in API level 16
void checkBuilder ()

getStandardView

Added in API level 16
RemoteViews getStandardView (int layoutId)

Parameters
layoutId int
Returns
RemoteViews

internalSetBigContentTitle

Added in API level 16
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
void internalSetSummaryText (CharSequence cs)

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

Parameters
cs CharSequence
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.