From 37f3508c90dde76fc379ff33c6a68ebfc9f2763a Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Mon, 9 May 2022 18:21:24 +0800 Subject: [PATCH] update readmes Signed-off-by: ester.zhou --- .../Readme-EN.md | 6 ++--- ...ckground-agent-scheduled-reminder-guide.md | 21 ++++++++++++----- ...round-agent-scheduled-reminder-overview.md | 2 +- en/application-dev/notification/Readme-EN.md | 22 ++++++------------ en/application-dev/quick-start/Readme-EN.md | 23 ++++++++++--------- 5 files changed, 38 insertions(+), 36 deletions(-) diff --git a/en/application-dev/background-agent-scheduled-reminder/Readme-EN.md b/en/application-dev/background-agent-scheduled-reminder/Readme-EN.md index 7f4083e641..45eba39ce6 100644 --- a/en/application-dev/background-agent-scheduled-reminder/Readme-EN.md +++ b/en/application-dev/background-agent-scheduled-reminder/Readme-EN.md @@ -1,4 +1,4 @@ -# Agent-Powered Scheduled Reminders +# Agent-Powered Scheduled Reminder -- [Overview](background-agent-scheduled-reminder-overview.md) -- [Development Guidelines](background-agent-scheduled-reminder-guide.md) +- [Agent-Powered Scheduled Reminder Overview](background-agent-scheduled-reminder-overview.md) +- [Agent-Powered Scheduled Reminder Development](background-agent-scheduled-reminder-guide.md) diff --git a/en/application-dev/background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md b/en/application-dev/background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md index cb31281e69..d61ce4bab7 100644 --- a/en/application-dev/background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md +++ b/en/application-dev/background-agent-scheduled-reminder/background-agent-scheduled-reminder-guide.md @@ -1,4 +1,4 @@ -# Development Guidelines +# Agent-Powered Scheduled Reminder Development ## When to Use @@ -350,7 +350,7 @@ You can set your application to call the **ReminderRequest** class to create s **ReminderRequestCalendar** extends **ReminderRequest** and defines a reminder for a calendar event. -For the application to run properly, if both **repeatMonths** and **repeatDays** are not specified, the earliest reminder time must be later than the current time. +For the application to run properly, if both **repeatMonths** and **repeatDays** are not specified, the earliest reminder time must be later than the current time. **Table 8** ReminderRequestCalendar instance @@ -542,7 +542,7 @@ For the application to run properly, if both **repeatMonths** and **repeatDays** ## How to Develop ->![](../public_sys-resources/icon-note.gif) **NOTE:** +>![](../public_sys-resources/icon-note.gif) **NOTE:** >To publish a reminder, your application needs to apply for the **ohos.permission.PUBLISH\_AGENT\_REMINDER** permission. Publish a 10-second countdown reminder. @@ -553,7 +553,10 @@ Publish a 10-second countdown reminder. import reminderAgent from '@ohos.reminderAgent'; import notification from '@ohos.notification'; export default { - timer: { + // In JS Project: + // timer: { + // In eTS Project: + let timer : reminderAgent.ReminderRequestTimer = { reminderType: reminderAgent.ReminderType.REMINDER_TYPE_TIMER, triggerTimeInSeconds: 10, actionButton: [ @@ -602,7 +605,10 @@ Publish a 10-second countdown reminder. Sample code for defining a calendar reminder instance: ``` -calendar: { +// In JS Project: +// calendar: { +// In eTS Project: +let calendar : reminderAgent.ReminderRequestCalendar = { reminderType: reminderAgent.ReminderType.REMINDER_TYPE_CALENDAR, dateTime: { year: 2050, @@ -647,7 +653,10 @@ calendar: { Sample code for defining an alarm reminder instance: ``` -alarm: { +// In JS Project: +// alarm: { +// In eTS Project: +let alarm : reminderAgent.ReminderRequestAlarm = { reminderType: reminderAgent.ReminderType.REMINDER_TYPE_ALARM, hour: 11, minute: 14, diff --git a/en/application-dev/background-agent-scheduled-reminder/background-agent-scheduled-reminder-overview.md b/en/application-dev/background-agent-scheduled-reminder/background-agent-scheduled-reminder-overview.md index 32f0b858f3..b44656a232 100644 --- a/en/application-dev/background-agent-scheduled-reminder/background-agent-scheduled-reminder-overview.md +++ b/en/application-dev/background-agent-scheduled-reminder/background-agent-scheduled-reminder-overview.md @@ -1,4 +1,4 @@ -# Overview +# Agent-Powered Scheduled Reminder Overview Your application can call the **ReminderRequest** class to create scheduled reminders for countdown timers, calendar events, and alarm clocks. When the created reminders are published, the timing and pop-up notification functions of your application will be taken over by the reminder agent in the background, even when your application is frozen or exits. diff --git a/en/application-dev/notification/Readme-EN.md b/en/application-dev/notification/Readme-EN.md index 2a0df0e3a4..3207b121ae 100644 --- a/en/application-dev/notification/Readme-EN.md +++ b/en/application-dev/notification/Readme-EN.md @@ -1,17 +1,9 @@ # Common Event and Notification -[Common Event and Notification Overview](notification-brief.md) - -### Common Event - -* [Common Event Development](common-event.md) - -### Notification - -* [Notification Development](notification.md) - - - -### Debugging Tools - -* [Debugging Assistant Usage](assistant-guidelines.md) +- [Common Event and Notification Overview](notification-brief.md) +- Common Event + - [Common Event Development](common-event.md) +- Notification + - [Notification Development](notification.md) +- Debugging Tools + - [Debugging Assistant Usage](assistant-guidelines.md) diff --git a/en/application-dev/quick-start/Readme-EN.md b/en/application-dev/quick-start/Readme-EN.md index 675d011f66..e101158532 100644 --- a/en/application-dev/quick-start/Readme-EN.md +++ b/en/application-dev/quick-start/Readme-EN.md @@ -1,13 +1,14 @@ # Quick Start -- Getting Started - - [Preparations](start-overview.md) - - [Getting Started with eTS in the Traditional Coding Approach](start-with-ets.md) - - [Getting Started with eTS in the Low-Code Approach](start-with-ets-low-code.md) - - [Getting Started with JavaScript in the Traditional Coding Approach](start-with-js.md) - - [Getting Started with JavaScript in the Low-Code Approach](start-with-js-low-code.md) -- Development Fundamentals - - [Application Development Package Structure ](package-structure.md) - - [Resource File Categories](basic-resource-file-categories.md) - - [SysCap](syscap.md) - +- Getting Started + - [Preparations](start-overview.md) + - [Getting Started with eTS in the Traditional Coding Approach](start-with-ets.md) + - [Getting Started with eTS in the Low-Code Approach](start-with-ets-low-code.md) + - [Getting Started with JavaScript in the Traditional Coding Approach](start-with-js.md) + - [Getting Started with JavaScript in the Low-Code Approach](start-with-js-low-code.md) + +- Development Fundamentals + - [Application Development Package Structure (FA Model)](package-structure.md) + - [Application Development Package Structure (Stage Model)](module-structure.md) + - [Resource File Categories](basic-resource-file-categories.md) + - [SysCap](syscap.md) -- GitLab