!9929 【泛Sensor】新增高清振动判断接口

Merge pull request !9929 from lixiangpeng5/hd_haptic
This commit is contained in:
openharmony_ci 2024-05-09 07:45:33 +00:00 committed by Gitee
commit 858bae34cd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -292,6 +292,16 @@ declare namespace vibrator {
*/
function stop(stopMode: VibratorStopMode, callback?: AsyncCallback<void>): void;
/**
* Whether the high-definition haptic is supported.
*
* @returns { boolean } Returns whether the high-definition haptic is supported.
* @throws { BusinessError } 14600101 - Device operation failed.
* @syscap SystemCapability.Sensors.MiscDevice
* @since 12
*/
function isHdHapticSupported(): boolean;
/**
* Preset vibration effect string.
*