From 8004284a0f69271dc0b85e166e4d0e2b264ba790 Mon Sep 17 00:00:00 2001 From: derek Date: Mon, 7 Feb 2022 10:27:52 +0800 Subject: [PATCH 1/3] modify syscap description Signed-off-by: derek Change-Id: Ibfee36b88770f2bfa2461ed3856222d55712c738 --- interfaces/kits/js/@ohos.reminderAgent.d.ts | 48 ++++++++++----------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/interfaces/kits/js/@ohos.reminderAgent.d.ts b/interfaces/kits/js/@ohos.reminderAgent.d.ts index 96c26e2dc..ba8909749 100644 --- a/interfaces/kits/js/@ohos.reminderAgent.d.ts +++ b/interfaces/kits/js/@ohos.reminderAgent.d.ts @@ -30,7 +30,7 @@ declare namespace reminderAgent { * Publishes a scheduled reminder. * * @since 7 - * @sysCap Publishes an agent-powered reminder. + * @sysCap Agent-Powered Reminder. * @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 Agent-Powered Reminder. * @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 Agent-Powered Reminder. * @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 Agent-Powered Reminder. * @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 Agent-Powered Reminder. * @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 Agent-Powered Reminder. * @param slotType Indicates the type of the slot. * @param callback Indicates the callback function. */ @@ -96,7 +96,7 @@ declare namespace reminderAgent { * Declares action button type. * * @since 7 - * @sysCap Define action button type. + * @sysCap Agent-Powered Reminder. */ export enum ActionButtonType { /** @@ -118,7 +118,7 @@ declare namespace reminderAgent { * Declares reminder type. * * @since 7 - * @sysCap Define reminder type. + * @sysCap Agent-Powered Reminder. */ export enum ReminderType { /** @@ -147,7 +147,7 @@ declare namespace reminderAgent { * Action button information. The button will show on displayed reminder. * * @since 7 - * @sysCap Define action button object. + * @sysCap Agent-Powered Reminder. */ interface ActionButton { /** @@ -170,7 +170,7 @@ declare namespace reminderAgent { * It will switch to target ability when you click the displayed reminder. * * @since 7 - * @sysCap Define want agent object. + * @sysCap Agent-Powered Reminder. */ interface WantAgent { /** @@ -192,13 +192,13 @@ declare namespace reminderAgent { * Reminder Common information. * * @since 7 - * @sysCap Define reminder request object. + * @sysCap Agent-Powered Reminder. */ interface ReminderRequest { /** * Type of the reminder. * @since 7 - * @sysCap Agent-Powered Reminder + * @sysCap Agent-Powered Reminder. */ 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 Agent-Powered Reminder. */ actionButton?: [ActionButton?, ActionButton?]; /** * Information about the ability that is redirected to when the notification is clicked. * @since 7 - * @sysCap Agent-Powered Reminder + * @sysCap Agent-Powered Reminder. */ wantAgent?: WantAgent; /** * Reminder title. * @since 7 - * @sysCap Agent-Powered Reminder + * @sysCap Agent-Powered Reminder. */ title?: string; /** * Reminder content. * @since 7 - * @sysCap Agent-Powered Reminder + * @sysCap Agent-Powered Reminder. */ content?: string; /** * Content to be displayed when the reminder is snoozing. * @since 7 - * @sysCap Agent-Powered Reminder + * @sysCap Agent-Powered Reminder. */ 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 Agent-Powered Reminder. */ notificationId?: number; /** * Type of the slot used by the reminder. * @since 7 - * @sysCap Agent-Powered Reminder + * @sysCap Agent-Powered Reminder. */ slotType?: notification.SlotType; } @@ -263,21 +263,21 @@ declare namespace reminderAgent { /** * Hour portion of the reminder time. * @since 7 - * @sysCap Agent-Powered Reminder + * @sysCap Agent-Powered Reminder. */ hour: number; /** * minute portion of the remidner time. * @since 7 - * @sysCap Agent-Powered Reminder + * @sysCap Agent-Powered Reminder. */ minute: number; /** * Days of a week when the reminder repeates. * @since 7 - * @sysCap Agent-Powered Reminder + * @sysCap Agent-Powered Reminder. */ daysOfWeek?: Array; } @@ -286,10 +286,10 @@ declare namespace reminderAgent { * CountDown reminder information. * * @since 7 - * @sysCap Define count down timer reminder object. + * @sysCap Agent-Powered Reminder. */ interface ReminderRequestTimer extends ReminderRequest { triggerTimeInSeconds: number; } } -export default reminderAgent; +export default reminderAgent; \ No newline at end of file -- Gitee From d8eca8115593b78d8650e4e54de4c0030199c2bd Mon Sep 17 00:00:00 2001 From: derek Date: Mon, 7 Feb 2022 16:47:02 +0800 Subject: [PATCH 2/3] update syscap Signed-off-by: derek Change-Id: I78badefcc7ae530f6cd3360d87cbc612b6d7ac43 --- interfaces/kits/js/@ohos.reminderAgent.d.ts | 66 ++++++++++----------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/interfaces/kits/js/@ohos.reminderAgent.d.ts b/interfaces/kits/js/@ohos.reminderAgent.d.ts index ba8909749..4408bc120 100644 --- a/interfaces/kits/js/@ohos.reminderAgent.d.ts +++ b/interfaces/kits/js/@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 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 Agent-Powered Reminder. + * @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 Agent-Powered Reminder. + * @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 Agent-Powered Reminder. + * @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 Agent-Powered Reminder. + * @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 Agent-Powered Reminder. + * @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 Agent-Powered Reminder. + * @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 Agent-Powered Reminder. + * @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 Agent-Powered Reminder. + * @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 Agent-Powered Reminder. + * @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 Agent-Powered Reminder. + * @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; } @@ -263,21 +263,21 @@ declare namespace reminderAgent { /** * 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,7 +286,7 @@ declare namespace reminderAgent { * CountDown reminder information. * * @since 7 - * @sysCap Agent-Powered Reminder. + * @sysCap SystemCapability.Notification.ReminderAgent */ interface ReminderRequestTimer extends ReminderRequest { triggerTimeInSeconds: number; -- Gitee From 4e8483f4793eb4ba3bae60acb710969215313dcb Mon Sep 17 00:00:00 2001 From: derek Date: Thu, 10 Feb 2022 14:46:13 +0800 Subject: [PATCH 3/3] update syscap Signed-off-by: derek Change-Id: I6057d5ee115072b52551acdad15df5634304f3b2 --- interfaces/kits/js/@ohos.reminderAgent.d.ts | 68 ++++++++++----------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/interfaces/kits/js/@ohos.reminderAgent.d.ts b/interfaces/kits/js/@ohos.reminderAgent.d.ts index 4408bc120..67c0841c9 100644 --- a/interfaces/kits/js/@ohos.reminderAgent.d.ts +++ b/interfaces/kits/js/@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 SystemCapability.Notification.ReminderAgent + * @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 SystemCapability.Notification.ReminderAgent + * @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 SystemCapability.Notification.ReminderAgent + * @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 SystemCapability.Notification.ReminderAgent + * @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 SystemCapability.Notification.ReminderAgent + * @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 SystemCapability.Notification.ReminderAgent + * @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 SystemCapability.Notification.ReminderAgent + * @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 SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ export enum ActionButtonType { /** * Button for closing the reminder. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ ACTION_BUTTON_TYPE_CLOSE = 0, /** * Button for snoozing the reminder. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ ACTION_BUTTON_TYPE_SNOOZE = 1 } @@ -118,27 +118,27 @@ declare namespace reminderAgent { * Declares reminder type. * * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ export enum ReminderType { /** * Countdown reminder. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ REMINDER_TYPE_TIMER = 0, /** * Calendar reminder. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ REMINDER_TYPE_CALENDAR = 1, /** * Alarm reminder. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @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 SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ interface ActionButton { /** * Text on the button. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ title: string; /** * Button type. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @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 SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ interface WantAgent { /** * Name of the package redirected to when the reminder notification is clicked. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ pkgName: string; /** * Name of the ability that is redirected to when the reminder notification is clicked. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ abilityName: string; } @@ -192,13 +192,13 @@ declare namespace reminderAgent { * Reminder Common information. * * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ interface ReminderRequest { /** * Type of the reminder. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @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 SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ actionButton?: [ActionButton?, ActionButton?]; /** * Information about the ability that is redirected to when the notification is clicked. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ wantAgent?: WantAgent; /** * Reminder title. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ title?: string; /** * Reminder content. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ content?: string; /** * Content to be displayed when the reminder is snoozing. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @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 SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ notificationId?: number; /** * Type of the slot used by the reminder. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @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 SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ hour: number; /** * minute portion of the remidner time. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ minute: number; /** * Days of a week when the reminder repeates. * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ daysOfWeek?: Array; } @@ -286,7 +286,7 @@ declare namespace reminderAgent { * CountDown reminder information. * * @since 7 - * @sysCap SystemCapability.Notification.ReminderAgent + * @syscap SystemCapability.Notification.ReminderAgent */ interface ReminderRequestTimer extends ReminderRequest { triggerTimeInSeconds: number; -- Gitee