• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NotificationActionButton
2
3The **NotificationActionButton** module provides APIs for defining the button displayed in the notification.
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8
9## Attributes
10
11**System capability**: SystemCapability.Notification.Notification
12
13| Name     | Type                                           | Read-only| Mandatory| Description                     |
14| --------- | ----------------------------------------------- | --- | ---- | ------------------------- |
15| title     | string                                          | No | Yes | Button title.                 |
16| wantAgent | [WantAgent](js-apis-app-ability-wantAgent.md)   | No | Yes | **WantAgent** of the button.|
17| extras    | { [key: string]: any }                          | No | No | Extra information of the button.             |
18| userInput<sup>8+</sup> | [NotificationUserInput](js-apis-inner-notification-notificationUserInput.md) | No | No | User input object.         |
19