• Home
Name Date Size #Lines LOC

..--

entry/12-May-2024-2,0951,938

screenshots/devices/12-May-2024-

.gitignoreD12-May-2024121 88

README.mdD12-May-20241.5 KiB3417

README_zh.mdD12-May-20241.5 KiB3518

build-profile.json5D12-May-20241 KiB4241

hvigorfile.jsD12-May-2024174 21

package.jsonD12-May-2024373 1918

README.md

1# Flip Clock
2
3### Introduction
4
5 This sample uses the Feature Ability (FA) model and related APIs to implement a simple flip clock app. Below shows the sample app.
6
7![FlipClock](screenshots/devices/FlipClock.png)  ![CountDown](screenshots/devices/CountDown.png)
8
9### Concepts
10
11**reminderAgent**: a class that provides APIs 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 when your application is frozen or exits.
12
13### Required Permissions
14
15ohos.permission.PUBLISH_AGENT_REMINDER (permission for the reminder agent)
16
17ohos.permission.RUNNING_LOCK (permission for the running lock)
18
19### Usage
20
211. There are four tab bars (**Clock**, **Alarm**, **Countdown**, and **Settings**) at the bottom of the home page of the sample app. The **Clock** tab page displays a flip clock.
22
232. On the **Alarm** tab page, you can touch **+** to create an alarm record. When the alarm time arrives, a notification will be displayed.
24
253. The **Countdown** tab page provides the countdown function.
26
274. The **Settings** tab page provides the following functions: full screen, screen brightness adjustment, and screen-on.
28
29### Constraints
30
311. This sample can only be run on standard-system devices.
32
332. This sample requires DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022) to compile and run.
34

README_zh.md

1# 翻页时钟
2
3### 简介
4
5 本示例运用OpenHarmony系统提供的FA模型与相关接口展示了一个简易的时钟。 实现效果如下:
6
7![FlipClock](screenshots/devices/FlipClock.png)  ![CountDown](screenshots/devices/CountDown.png)
8
9### 相关概念
10
11后台代理提醒:后台代理提醒主要提供后台提醒发布接口,开发者在应用开发时,可以调用这些接口去创建定时提醒,包括倒计时、日历、闹钟三种提醒类型。使用后台代理提醒能力后,应用可以被冻结或退出,计时和弹出提醒的功能将被后台系统服务代理。
12
13### 相关权限
14
15后台代理提醒权限:ohos.permission.PUBLISH_AGENT_REMINDER
16
17运行锁权限: ohos.permission.RUNNING_LOCK
18
19### 使用说明
20
211.主页面有四个底部标签栏,时钟页面展示了数字翻页时钟功能。
22
232.闹钟功能点击**+**号可以创建一个闹钟,等闹钟时间到了会进行提醒。
24
253.倒计时功能。
26
274.设置里边实现的功能有全屏、调节屏幕亮度和不熄屏。
28
29### 约束与限制
30
311.本示例仅支持在标准系统上运行。
32
332.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。
34
353.本示例需要使用@ohos.brightness系统权限的系统接口。使用Full SDK时需要手动从镜像站点获取,并在DevEco Studio中替换,具体操作可参考[替换指南](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md)