文件最后提交记录最后更新时间
!2467 修复重置按钮不显示问题 * 修复重置按钮不显示问题 3 年前
Issue: #I6DWU6 Description: BasicFeature模块,目录结构迁移 Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hongshengquan <hongshengquan3@huawei.com> 3 年前
!2280 【0230】Vibrator弹窗问题处理 * Vibrator功能问题处理 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
!2280 【0230】Vibrator弹窗问题处理 * Vibrator功能问题处理 3 年前
Issue: #I6DWU6 Description: BasicFeature模块,目录结构迁移 Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hongshengquan <hongshengquan3@huawei.com> 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
README.md

Vibrator

Introduction

This sample simulates the countdown scenario to show the use of the vibrator APIs. Below shows the sample app.

Functions

You can trigger a vibrator to vibrate by duration or vibration effect.

Required Permissions

ohos.permission.VIBRATE

Usage

  1. Touch the countdown text. A time picker is displayed. Select any time and touch OK. The selected time is displayed as the countdown text.

  2. Touch start. The countdown starts, and the round progress bar and countdown text start changing. When the countdown ends, the device vibrates, the progress bar returns to the initial state, and a vibration dialog box is displayed.

  3. Touch reset. The countdown ends, and the round progress bar and countdown text are restored to the initial state.

Constraints

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

  2. This sample requires a device with a vibrator.

  3. This sample requires DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) to compile and run.