The following functions are supported:
The application must have system permissions for notification subscription and unsubscription.
| 接口 | 说明 |
|---|---|
| IAdvancedNotificationManager | 已过时。
This change is effective since API version 5.
|
| INotificationSubscriber | 已过时。
This change is effective since API version 5.
|
| 类 | 说明 |
|---|---|
| MessageUser |
Represents a message sender that can be used by
NotificationRequest,
NotificationRequest.NotificationConversationalContent and
NotificationRequest.NotificationConversationalContent.ConversationalMessage. |
| NotificationActionButton |
Encapsulates an action button to be displayed in a notification.
|
| NotificationActionButton.Builder |
Builder class for
NotificationActionButton object. |
| NotificationConstant |
Provides static constants to indicate notification deletion reasons.
|
| NotificationHelper |
Manages notifications.
|
| NotificationRequest |
Carries notifications.
|
| NotificationRequest.NotificationContent |
Sets the content of a notification to be passed to the
NotificationRequest#setContent(NotificationRequest.NotificationContent) method. |
| NotificationRequest.NotificationConversationalContent |
Constructs a conversation-like notification that includes message communication among multiple users.
|
| NotificationRequest.NotificationConversationalContent.ConversationalMessage |
Provides methods for defining a conversational message that is used in notifications created with
NotificationConversationalContent. |
| NotificationRequest.NotificationLongTextContent |
Constructs notifications that include long text.
|
| NotificationRequest.NotificationMediaContent |
Constructs a media playback notification that can interact with associated audio sessions.
|
| NotificationRequest.NotificationMultiLineContent |
Constructs a notification that includes multiple lines of text.
|
| NotificationRequest.NotificationNormalContent |
Constructs basic notifications.
|
| NotificationRequest.NotificationPictureContent |
Constructs notifications that include a picture attachment.
|
| NotificationSlot |
Defines a public notification theme, which is a collection of features including notification tone,
vibration, lock screen display, and level.
|
| NotificationSlotGroup |
Manages multiple notification slots with the same name in an application.
|
| NotificationSorting |
Provides sorting information about an active notification.
|
| NotificationSortingMap |
Provides sorting information about the active notifications among all the notifications that have been subscribed to.
|
| NotificationSubscribeInfo |
Sets filter criteria of publishers for subscribing to desired notifications.
|
| NotificationSubscriber |
Provides methods that will be called back when the subscriber receives a new notification or
a notification is canceled.
|
| NotificationUserInput |
Defines the user input, which will be passed together with an intent in a sent
IntentAgent. |
| NotificationUserInput.Builder |
Builder class for
NotificationUserInput object. |
| ReminderHelper |
Provides static methods for managing reminders, including publishing or canceling a reminder,
adding or removing a notification slot, and obtaining or canceling all reminders of the current application.
|
| ReminderManager |
Define constant for background agent service function.
|
| ReminderRequest |
Base class for letting a background agent to publish reminders on behalf of a third-party application.
|
| ReminderRequestAlarm |
A
ReminderRequest child class used for creating reminders for alarm clocks. |
| ReminderRequestCalendar |
A
ReminderRequest child class used for creating reminders for calendar events. |
| ReminderRequestTimer |
A
ReminderRequest child class used for creating reminders for countdown timers. |
| 枚举 | 说明 |
|---|---|
| NotificationConstant.DisturbMode |
Enumerates the types of the Do Not Disturb mode.
|
| NotificationConstant.InputEditType |
Enumerates the edit types of options that are provided to users in a notification.
|
| NotificationConstant.InputsSource |
Enumerates user input sources.
|
| NotificationConstant.SemanticActionButton |
Enumerates the actions that the associated
IntentAgent will take when
a NotificationActionButton is triggered. |
| 异常错误 | 说明 |
|---|