java.lang.Object |---java.lang.Enum<NotificationTemplate> |---|---com.huawei.wearengine.notify.NotificationTemplate public enum NotificationTemplate extends java.lang.Enum<NotificationTemplate> |
通知模板
Enum Constant and Description |
|---|
NOTIFICATION_TEMPLATE_NO_BUTTON 50:没有按钮 |
NOTIFICATION_TEMPLATE_ONE_BUTTON 51:一个按钮 |
Modifier and Type | Method and Description |
|---|---|
static NotificationTemplate | getTemplateForTemplateId(int templateId) 通过templateId获取通知模板 |
public static final NotificationTemplate NOTIFICATION_TEMPLATE_NO_BUTTON
50:没有按钮
Since:
API level 2 (SDK 5.0.1.300)
public static final NotificationTemplate NOTIFICATION_TEMPLATE_ONE_BUTTON
51:一个按钮
Since:
API level 2 (SDK 5.0.1.300)
public static final NotificationTemplate NOTIFICATION_TEMPLATE_TWO_BUTTONS
52:两个按钮
Since:
API level 2 (SDK 5.0.1.300)
public static final NotificationTemplate NOTIFICATION_TEMPLATE_THREE_BUTTONS
53:三个按钮
Since:
API level 2 (SDK 5.0.1.300)
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)