文件最后提交记录最后更新时间
!1039 适配横屏、修改992版本IDE编译报错、bug修复 * bugfix 3 年前
!883 README 整改 * README整改 * README整改 * README整改 3 年前
!977 翻译完成:全量翻译---FlipClock * added flipclock readme (en) 3 年前
!999 编译问题增加替换FULL SDK说明 * update readme 3 年前
!739 【OpenHarmony】新增FlipClock * 修复时钟动画显示问题 * 优化代码 * 增加中英文,删除不必要文件 * 删除不必要文件 * 新增FlipClock 3 年前
!739 【OpenHarmony】新增FlipClock * 修复时钟动画显示问题 * 优化代码 * 增加中英文,删除不必要文件 * 删除不必要文件 * 新增FlipClock 3 年前
!844 适配901 IDE版本 * update * add input * bugfix * update to IDE 901 3 年前
README.md

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)

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. DevEco Studio 3.0 Beta3 (Build Version: 3.0.0.901, built on May 30, 2022) must be used.