diff --git a/api/@ohos.reminderAgent.d.ts b/api/@ohos.reminderAgent.d.ts index 96c26e2dce021bf44c655890cba66354e5538ab0..67c0841c9b1ebc62b1d0901820b766c0385c4edf 100644 --- a/api/@ohos.reminderAgent.d.ts +++ b/api/@ohos.reminderAgent.d.ts @@ -22,7 +22,7 @@ import { NotificationSlot } from './notification/notificationSlot'; * adding or removing a notification slot, and obtaining or cancelling all reminders of the current application. * * @since 7 - * @sysCap Agent-Powered Reminder. + * @syscap SystemCapability.Notification.ReminderAgent * @import reminderAgent from '@ohos.reminderAgent'; */ declare namespace reminderAgent { @@ -30,7 +30,7 @@ declare namespace reminderAgent { * Publishes a scheduled reminder. * * @since 7 - * @sysCap Publishes an agent-powered reminder. + * @syscap SystemCapability.Notification.ReminderAgent * @permission ohos.permission.PUBLISH_AGENT_REMINDER * @param reminderReq Indicates the reminder instance to publish. * @param callback Indicates the callback function. @@ -43,7 +43,7 @@ declare namespace reminderAgent { * Cancels a reminder. * * @since 7 - * @sysCap Cancels the reminder with the specified ID. + * @syscap SystemCapability.Notification.ReminderAgent * @param reminderId Indicates the reminder id. * @param callback Indicates the callback function. */ @@ -54,7 +54,7 @@ declare namespace reminderAgent { * Obtains all the valid reminders of current application. * * @since 7 - * @sysCap Obtains all valid (not yet expired) remindeers set by the current application. + * @syscap SystemCapability.Notification.ReminderAgent * @param callback Indicates the callback function. */ function getValidReminders(callback: AsyncCallback>): void; @@ -64,7 +64,7 @@ declare namespace reminderAgent { * Cancels all the reminders of current application. * * @since 7 - * @sysCap Cancels all the reminders set by the current application. + * @syscap SystemCapability.Notification.ReminderAgent * @param callback Indicates the callback function. */ function cancelAllReminders(callback: AsyncCallback): void; @@ -74,7 +74,7 @@ declare namespace reminderAgent { * Add notification slot. * * @since 7 - * @sysCap Adds a reminder notification slot. + * @syscap SystemCapability.Notification.ReminderAgent * @param slot Indicates the slot. * @param callback Indicates the callback function. */ @@ -85,7 +85,7 @@ declare namespace reminderAgent { * Deletes a created notification slot based on the slot type. * * @since 7 - * @sysCap Removes a notification slot instance of a specified type. + * @syscap SystemCapability.Notification.ReminderAgent * @param slotType Indicates the type of the slot. * @param callback Indicates the callback function. */ @@ -96,20 +96,20 @@ declare namespace reminderAgent { * Declares action button type. * * @since 7 - * @sysCap Define action button type. + * @syscap SystemCapability.Notification.ReminderAgent */ export enum ActionButtonType { /** * Button for closing the reminder. * @since 7 - * @sysCap Agent-Powered reminder. + * @syscap SystemCapability.Notification.ReminderAgent */ ACTION_BUTTON_TYPE_CLOSE = 0, /** * Button for snoozing the reminder. * @since 7 - * @sysCap Agent-Powered reminder. + * @syscap SystemCapability.Notification.ReminderAgent */ ACTION_BUTTON_TYPE_SNOOZE = 1 } @@ -118,27 +118,27 @@ declare namespace reminderAgent { * Declares reminder type. * * @since 7 - * @sysCap Define reminder type. + * @syscap SystemCapability.Notification.ReminderAgent */ export enum ReminderType { /** * Countdown reminder. * @since 7 - * @sysCap Agent-Powered Reminder. + * @syscap SystemCapability.Notification.ReminderAgent */ REMINDER_TYPE_TIMER = 0, /** * Calendar reminder. * @since 7 - * @sysCap Agent-Powered Reminder. + * @syscap SystemCapability.Notification.ReminderAgent */ REMINDER_TYPE_CALENDAR = 1, /** * Alarm reminder. * @since 7 - * @sysCap Agent-Powered Reminder. + * @syscap SystemCapability.Notification.ReminderAgent */ REMINDER_TYPE_ALARM = 2 } @@ -147,20 +147,20 @@ declare namespace reminderAgent { * Action button information. The button will show on displayed reminder. * * @since 7 - * @sysCap Define action button object. + * @syscap SystemCapability.Notification.ReminderAgent */ interface ActionButton { /** * Text on the button. * @since 7 - * @sysCap Agent-Powered Reminder. + * @syscap SystemCapability.Notification.ReminderAgent */ title: string; /** * Button type. * @since 7 - * @sysCap Agent-Powered Reminder. + * @syscap SystemCapability.Notification.ReminderAgent */ type: ActionButtonType; } @@ -170,20 +170,20 @@ declare namespace reminderAgent { * It will switch to target ability when you click the displayed reminder. * * @since 7 - * @sysCap Define want agent object. + * @syscap SystemCapability.Notification.ReminderAgent */ interface WantAgent { /** * Name of the package redirected to when the reminder notification is clicked. * @since 7 - * @sysCap Agent-Powered Reminder. + * @syscap SystemCapability.Notification.ReminderAgent */ pkgName: string; /** * Name of the ability that is redirected to when the reminder notification is clicked. * @since 7 - * @sysCap Agent-Powered Reminder. + * @syscap SystemCapability.Notification.ReminderAgent */ abilityName: string; } @@ -192,13 +192,13 @@ declare namespace reminderAgent { * Reminder Common information. * * @since 7 - * @sysCap Define reminder request object. + * @syscap SystemCapability.Notification.ReminderAgent */ interface ReminderRequest { /** * Type of the reminder. * @since 7 - * @sysCap Agent-Powered Reminder + * @syscap SystemCapability.Notification.ReminderAgent */ reminderType: ReminderType; @@ -206,49 +206,49 @@ declare namespace reminderAgent { * Action button displayed on the reminder notification. * (The parameter is optional. Up to two buttons are supported). * @since 7 - * @sysCap Agent-Powered Reminder + * @syscap SystemCapability.Notification.ReminderAgent */ actionButton?: [ActionButton?, ActionButton?]; /** * Information about the ability that is redirected to when the notification is clicked. * @since 7 - * @sysCap Agent-Powered Reminder + * @syscap SystemCapability.Notification.ReminderAgent */ wantAgent?: WantAgent; /** * Reminder title. * @since 7 - * @sysCap Agent-Powered Reminder + * @syscap SystemCapability.Notification.ReminderAgent */ title?: string; /** * Reminder content. * @since 7 - * @sysCap Agent-Powered Reminder + * @syscap SystemCapability.Notification.ReminderAgent */ content?: string; /** * Content to be displayed when the reminder is snoozing. * @since 7 - * @sysCap Agent-Powered Reminder + * @syscap SystemCapability.Notification.ReminderAgent */ expiredContent?: string; /** * notification id. If there are reminders with the same ID, the later one will overwrite the earlier one. * @since 7 - * @sysCap Agent-Powered Reminder + * @syscap SystemCapability.Notification.ReminderAgent */ notificationId?: number; /** * Type of the slot used by the reminder. * @since 7 - * @sysCap Agent-Powered Reminder + * @syscap SystemCapability.Notification.ReminderAgent */ slotType?: notification.SlotType; } @@ -257,27 +257,27 @@ declare namespace reminderAgent { * Alarm reminder information. * * @since 7 - * @sysCap Define alarm reminder object. + * @syscap Define alarm reminder object. */ interface ReminderRequestAlarm extends ReminderRequest { /** * Hour portion of the reminder time. * @since 7 - * @sysCap Agent-Powered Reminder + * @syscap SystemCapability.Notification.ReminderAgent */ hour: number; /** * minute portion of the remidner time. * @since 7 - * @sysCap Agent-Powered Reminder + * @syscap SystemCapability.Notification.ReminderAgent */ minute: number; /** * Days of a week when the reminder repeates. * @since 7 - * @sysCap Agent-Powered Reminder + * @syscap SystemCapability.Notification.ReminderAgent */ daysOfWeek?: Array; } @@ -286,10 +286,10 @@ declare namespace reminderAgent { * CountDown reminder information. * * @since 7 - * @sysCap Define count down timer reminder object. + * @syscap SystemCapability.Notification.ReminderAgent */ interface ReminderRequestTimer extends ReminderRequest { triggerTimeInSeconds: number; } } -export default reminderAgent; +export default reminderAgent; \ No newline at end of file