harmony 鸿蒙Vibrator Overview
Vibrator Overview
The vibrator module extends the vibrator service via maximizing utilization of vibrator hardware capabilities. By innovatively integrating vibration and interaction, the module takes user interaction efficiency and usability to the next level.
Working Principles
The vibrator is a Misc device that consists of four modules: Vibrator API, Vibrator Framework, Vibrator Service, and HDF layer.
Figure 1 Vibrator in Misc devices
Vibrator API: provides basic vibrator APIs, including the APIs for obtaining the vibrator list, querying the vibrator by effect, and triggering and stopping vibration.
Vibrator Framework: manages the framework layer of the vibrator and communicates with the Misc Device Service.
Vibrator Service: manages services of vibrators.
HDF layer: adapts to different devices.
Constraints
When using a vibrator, you must declare the ohos.permission.VIBRATE permission before you can control the vibration effect.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Sensor Development (C/C++)
harmony 鸿蒙Sensor Development (ArkTS)
harmony 鸿蒙Introduction to Sensor Service Kit
harmony 鸿蒙Vibrator Development
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦