public final class NotificationConstant extends Object
The constants are the int parameters used when
NotificationSubscriber#onCanceled(NotificationRequest, NotificationSortingMap, int) is called.
SystemCapability.Notification#ANS| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
NotificationConstant.DisturbMode |
Enumerates the types of the Do Not Disturb mode.
|
static class |
NotificationConstant.InputEditType |
Enumerates the edit types of options that are provided to users in a notification.
|
static class |
NotificationConstant.InputsSource |
Enumerates user input sources.
|
static class |
NotificationConstant.SemanticActionButton |
Enumerates the actions that the associated
IntentAgent will take when
a NotificationActionButton is triggered. |
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
APP_CANCEL_ALL_REASON_DELETE |
Indicates that a notification is deleted because the application cancels all notifications.
|
static int |
APP_CANCEL_REASON_DELETE |
Indicates that a notification is deleted because the application cancels it.
|
static int |
APP_CANCEL_REASON_OTHER |
Indicates that a notification is deleted for other reasons.
|
static int |
CANCEL_ALL_REASON_DELETE |
Indicates that a notification is deleted because the user clears all notifications.
|
static int |
CANCEL_REASON_DELETE |
Indicates that a notification is deleted because the user clears it.
|
static int |
CLICK_REASON_DELETE |
Indicates that a notification is deleted because it is clicked.
|
static int |
ERROR_REASON_DELETE |
Indicates that a notification is deleted because of a UI error.
|
static String |
EXTRA_INPUTS_SOURCE |
The key indicates input source.
|
static int |
PACKAGE_BANNED_REASON_DELETE |
Indicates that a notification is deleted because the application is banned from sending notifications.
|
static int |
PACKAGE_CHANGED_REASON_DELETE |
Indicates that a notification is deleted because a change has been made to the application.
|
static int |
USER_STOPPED_REASON_DELETE |
Indicates that a notification is deleted because the application context is stopped.
|
public static final int APP_CANCEL_ALL_REASON_DELETE
public static final int APP_CANCEL_REASON_DELETE
public static final int APP_CANCEL_REASON_OTHER
public static final int CANCEL_ALL_REASON_DELETE
public static final int CANCEL_REASON_DELETE
public static final int CLICK_REASON_DELETE
public static final int ERROR_REASON_DELETE
public static final String EXTRA_INPUTS_SOURCE
public static final int PACKAGE_BANNED_REASON_DELETE
public static final int PACKAGE_CHANGED_REASON_DELETE
public static final int USER_STOPPED_REASON_DELETE