applications_app_samples/code/Solutions/Tools/FlipClock
2024-04-29 17:18:37 +08:00
..
AppScope FilpClock转为Stage模型 2023-02-14 18:32:50 +08:00
entry 修复FlipClock应用调用后台代理提醒服务时,ReminderRequest.ringDuration参数设置错误问题 2024-04-29 17:18:37 +08:00
hvigor DistributedAuthentication 迁移 2023-05-05 21:04:09 +08:00
lib FlipClock public整改 2024-04-07 10:57:04 +08:00
screenshots/devices FilpClock转为Stage模型 2023-02-14 18:32:50 +08:00
.gitignore description: Add build-profile.json5 ! 2023-02-16 21:03:13 +08:00
build-profile.json5 revert sdk version 10->9 2023-04-13 16:51:47 +08:00
hvigorfile.ts FilpClock转为Stage模型 2023-02-14 18:32:50 +08:00
hvigorw DistributedAuthentication 迁移 2023-05-05 21:04:09 +08:00
hvigorw.bat DistributedAuthentication 迁移 2023-05-05 21:04:09 +08:00
oh-package.json5 DistributedAuthentication 迁移 2023-05-05 21:04:09 +08:00
ohosTest.md 添加自动化测试用例 2023-04-20 16:19:23 +08:00
README_zh.md FlipClock public整改 2024-04-07 10:57:04 +08:00
README.md FilpClock转为Stage模型 2023-02-14 18:32:50 +08:00

Flip Clock

Introduction

This sample uses the Feature Ability (FA) model and related APIs to implement a simple flip clock app. Below shows the sample app.

FlipClock CountDown

Concepts

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.

Required Permissions

ohos.permission.PUBLISH_AGENT_REMINDER (permission for the reminder agent)

ohos.permission.RUNNING_LOCK (permission for the running lock)

ohos.permission.NOTIFICATION_CONTROLLER (permission for send notification)

Usage

  1. 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.

  2. On the Alarm tab page, you can touch + to create an alarm record. When the alarm time arrives, a notification will be displayed.

  3. The Countdown tab page provides the countdown function.

  4. The Settings tab page provides the following functions: full screen, screen brightness adjustment, and screen-on.

Constraints

  1. This sample can only be run on standard-system devices.

  2. This sample requires DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100, built on November 3, 2022) to compile and run.