文档管理中心

NotificationTemplate

java.lang.Object

|---java.lang.Enum<NotificationTemplate>

|---|---com.huawei.wearengine.notify.NotificationTemplate

public enum NotificationTemplate
extends java.lang.Enum<NotificationTemplate>

通知模板

Enum Constant Summary

展开

Enum Constant and Description

NOTIFICATION_TEMPLATE_NO_BUTTON 50:没有按钮

NOTIFICATION_TEMPLATE_ONE_BUTTON 51:一个按钮

NOTIFICATION_TEMPLATE_THREE_BUTTONS 53:三个按钮

NOTIFICATION_TEMPLATE_TWO_BUTTONS 52:两个按钮

Method Summary

展开

Modifier and Type

Method and Description

static NotificationTemplate

getTemplateForTemplateId(int templateId) 通过templateId获取通知模板

Enum Constant Detail

NOTIFICATION_TEMPLATE_NO_BUTTON

public static final NotificationTemplate NOTIFICATION_TEMPLATE_NO_BUTTON

50:没有按钮

Since:

API level 2 (SDK 5.0.1.300)

NOTIFICATION_TEMPLATE_ONE_BUTTON

public static final NotificationTemplate NOTIFICATION_TEMPLATE_ONE_BUTTON

51:一个按钮

Since:

API level 2 (SDK 5.0.1.300)

NOTIFICATION_TEMPLATE_TWO_BUTTONS

public static final NotificationTemplate NOTIFICATION_TEMPLATE_TWO_BUTTONS

52:两个按钮

Since:

API level 2 (SDK 5.0.1.300)

NOTIFICATION_TEMPLATE_THREE_BUTTONS

public static final NotificationTemplate NOTIFICATION_TEMPLATE_THREE_BUTTONS

53:三个按钮

Since:

API level 2 (SDK 5.0.1.300)

Method Detail

getTemplateForTemplateId

public static NotificationTemplate getTemplateForTemplateId(int templateId)

通过templateId获取通知模板

Parameters:

展开

Parameter Name

Parameter Description

templateId

模板id,参见NotificationTemplate

Returns:

通知模板

Since:

API level 2 (SDK 5.0.1.300)

搜索
请输入您想要搜索的关键词