diff --git a/zh-cn/application-dev/background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md b/zh-cn/application-dev/background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md index cb2a6ee65b646faedb9084bc7144b45257d33155..aa954f0be42d7539feb938120db7f9cf9e0a3dce 100644 --- a/zh-cn/application-dev/background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md +++ b/zh-cn/application-dev/background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md @@ -17,8 +17,8 @@ reminderAgent:封装了发布、取消提醒类通知的方法 | function cancelReminder(reminderId: number, callback: AsyncCallback<void>): void;
function cancelReminder(reminderId: number): Promise<void>; | 取消一个指定的提醒类通知。(reminderId从publishReminder的返回值获取) | | function getValidReminders(callback: AsyncCallback<Array<ReminderRequest>>): void;
function getValidReminders(): Promise<Array<ReminderRequest>>; | 获取当前应用设置的所有有效的提醒。 | | function cancelAllReminders(callback: AsyncCallback<void>): void;
function cancelAllReminders(): Promise<void>; | 取消当前应用设置的所有提醒 | -| function addNotificationSlot(slot: NotificationSlot, callback: AsyncCallback<void>): void;
function addNotificationSlot(slot: NotificationSlot): Promise<void>; | 注册一个提醒类需要使用的[ERROR:Invalid link:zh-cn_topic_0000001185364575.xml#xref16794355104117,link:zh-cn_topic_0000001180018813.xml#section1382174172015](zh-cn_topic_0000001180018813.xml#section1382174172015) | -| function removeNotificationSlot(slotType: notification.SlotType, callback: AsyncCallback<void>): void;
function removeNotificationSlot(slotType: notification.SlotType): Promise<void>; | 删除指定类型的[ERROR:Invalid link:zh-cn_topic_0000001185364575.xml#xref1925235384215,link:zh-cn_topic_0000001180018813.xml#section1382174172015](zh-cn_topic_0000001180018813.xml#section1382174172015) | +| function addNotificationSlot(slot: NotificationSlot, callback: AsyncCallback<void>): void;
function addNotificationSlot(slot: NotificationSlot): Promise<void>; | 注册一个提醒类需要使用的NotificationSlot | +| function removeNotificationSlot(slotType: notification.SlotType, callback: AsyncCallback<void>): void;
function removeNotificationSlot(slotType: notification.SlotType): Promise<void>; | 删除指定类型的NotificationSlot | enum ActionButtonType: 在提醒弹出的通知界面上的按钮的类型。 @@ -45,7 +45,7 @@ interface ActionButton:在提醒弹出的通知界面上的按钮实例 | 参数名 | 类型 | 必填 | 描述 | | -------- | -------- | -------- | -------- | | title | string | 是 | 按钮上显示的名称 | -| type | [ERROR:Invalid link:zh-cn_topic_0000001185364575.xml#xref1265195613399,link:#table8534712161513](#table8534712161513) | 是 | 按钮的类型 | +| type | ActionButtonType | 是 | 按钮的类型 | interface WantAgent: 设置点击通知后需要跳转的目标ability信息 @@ -71,10 +71,10 @@ interface ReminderRequest: 需要发布的提醒实例的信息 | 参数名 | 类型 | 必填 | 描述 | | -------- | -------- | -------- | -------- | -| reminderType | [ERROR:Invalid link:zh-cn_topic_0000001185364575.xml#xref512611316417,link:#table486010552014](#table486010552014) | 是 | 提醒的类型 | -| actionButton | [[ERROR:Invalid link:zh-cn_topic_0000001185364575.xml#xref8263115334317,link:#table880311117225](#table880311117225)?, [ERROR:Invalid link:zh-cn_topic_0000001185364575.xml#xref2069311554413,link:#table880311117225](#table880311117225)?] | 否 | 弹出的提醒通知栏中显示的按钮 | -| wantAgent | [ERROR:Invalid link:zh-cn_topic_0000001185364575.xml#xref1577918262463,link:#table9490856350](#table9490856350) | 否 | 点击通知后需要跳转的目标ability信息 | -| maxScreenWantAgent | [ERROR:Invalid link:zh-cn_topic_0000001185364575.xml#xref1069043844613,link:#table191319843714](#table191319843714) | 否 | 提醒到达时跳转的目标包。如果设备正在使用中,则弹出一个通知框 | +| reminderType | ReminderType | 是 | 提醒的类型 | +| actionButton | [ActionButton?,ActionButton?] | 否 | 弹出的提醒通知栏中显示的按钮 | +| wantAgent | WantAgent | 否 | 点击通知后需要跳转的目标ability信息 | +| maxScreenWantAgent | MaxScreenWantAgent | 否 | 提醒到达时跳转的目标包。如果设备正在使用中,则弹出一个通知框 | | ringDuration | number | 否 | 响铃时长 | | snoozeTimes | number | 否 | 延迟提醒次数 | | timeInterval | number | 否 | 延迟提醒间隔 | @@ -83,7 +83,7 @@ interface ReminderRequest: 需要发布的提醒实例的信息 | expiredContent | string | 否 | 提醒“过期”时显示的扩展内容 | | snoozeContent | string | 否 | 提醒“再响”时显示的扩展内容 | | notificationId | number | 否 | 提醒使用的notificationRequest的id,参见NotificationRequest.setNotificationId(int id) | -| slotType | [ERROR:Invalid link:zh-cn_topic_0000001185364575.xml#xref1837619084820,link:zh-cn_topic_0000001180018813.xml#section072355105110](zh-cn_topic_0000001180018813.xml#section072355105110) | 否 | 提醒使用的slot类型 | +| slotType | SlotType | 否 | 提醒使用的slot类型 | interface ReminderRequestCalendar extends ReminderRequest: 日历类提醒实例。 @@ -93,7 +93,7 @@ interface ReminderRequestCalendar extends ReminderRequest: 日历类提醒实例 | 参数名 | 类型 | 必填 | 描述 | | -------- | -------- | -------- | -------- | -| dateTime | [ERROR:Invalid link:zh-cn_topic_0000001185364575.xml#xref97387065711,link:#table16133167515](#table16133167515) | 是 | 设置目标时间 | +| dateTime | LocalDataTime | 是 | 设置目标时间 | | repeatMonths | Array<number> | 否 | 设置重复提醒的月份 | | repeatDays | Array<number> | 否 | 设置重复提醒的日期 | diff --git a/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-caution.gif b/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-caution.gif new file mode 100644 index 0000000000000000000000000000000000000000..6e90d7cfc2193e39e10bb58c38d01a23f045d571 Binary files /dev/null and b/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-caution.gif differ diff --git a/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-danger.gif b/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-danger.gif new file mode 100644 index 0000000000000000000000000000000000000000..6e90d7cfc2193e39e10bb58c38d01a23f045d571 Binary files /dev/null and b/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-danger.gif differ diff --git a/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-note.gif b/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-note.gif new file mode 100644 index 0000000000000000000000000000000000000000..6314297e45c1de184204098efd4814d6dc8b1cda Binary files /dev/null and b/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-note.gif differ diff --git a/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-notice.gif b/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-notice.gif new file mode 100644 index 0000000000000000000000000000000000000000..86024f61b691400bea99e5b1f506d9d9aef36e27 Binary files /dev/null and b/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-notice.gif differ diff --git a/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-tip.gif b/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-tip.gif new file mode 100644 index 0000000000000000000000000000000000000000..93aa72053b510e456b149f36a0972703ea9999b7 Binary files /dev/null and b/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-tip.gif differ diff --git a/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-warning.gif b/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-warning.gif new file mode 100644 index 0000000000000000000000000000000000000000..6e90d7cfc2193e39e10bb58c38d01a23f045d571 Binary files /dev/null and b/zh-cn/application-dev/background-agent-scheduled-reminder/public_sys-resources/icon-warning.gif differ diff --git a/zh-cn/application-dev/reference/apis/js-apis-background-task-mgmt.md b/zh-cn/application-dev/reference/apis/js-apis-backgroundTaskManager.md similarity index 100% rename from zh-cn/application-dev/reference/apis/js-apis-background-task-mgmt.md rename to zh-cn/application-dev/reference/apis/js-apis-backgroundTaskManager.md