This sample uses the Feature Ability (FA) model and related APIs to implement a simple flip clock app. Below shows the sample app.
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.
ohos.permission.PUBLISH_AGENT_REMINDER (permission for the reminder agent)
ohos.permission.RUNNING_LOCK (permission for the running lock)
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.
On the Alarm tab page, you can touch + to create an alarm record. When the alarm time arrives, a notification will be displayed.
The Countdown tab page provides the countdown function.
The Settings tab page provides the following functions: full screen, screen brightness adjustment, and screen-on.
This sample can only be run on standard-system devices.
DevEco Studio 3.0 Beta3 (Build Version: 3.0.0.901, built on May 30, 2022) must be used.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。