目录

Vibrator

Overview

Provides APIs for vibrator services to access the vibrator driver. Unified APIs can be used across different devices. It supports multiple vibration modes, strengths, and duration control modes, meeting the requirements such as game vibration feedback and notification reminders, and helping developers improve user experience and interaction effects of apps.

Since: 11

Files

Name Description
vibrator.h Declares the APIs for starting or stopping vibration. Standard vibration control APIs are provided. This document defines the core APIs of the Vibrator module.
vibrator_type.h Provides type definitions, error codes, and enumerated values of vibration.