Most visited

Recently visited

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
Known Indirect Subclasses


可以将丰富通知样式应用于 Notification.Builder对象的对象。

Summary

Fields

protected Notification.Builder mBuilder

Public constructors

Notification.Style()

Public methods

Notification build()

在此样式所附的Builder上调用 build()

void setBuilder(Notification.Builder builder)

Protected methods

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

覆盖模板大表单中的ContentTitle。

void internalSetSummaryText(CharSequence cs)

将详细信息部分的第一行设置为模板的大表格。

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

调用此样式所附的Builder上的 build()

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)

覆盖模板大表单中的ContentTitle。 这默认为传递给setContentTitle()的值。

Parameters
title CharSequence

internalSetSummaryText

Added in API level 16
void internalSetSummaryText (CharSequence cs)

将详细信息部分的第一行设置为模板的大表格。

Parameters
cs CharSequence

Hooray!