mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 06:03:30 +00:00
!9929 【泛Sensor】新增高清振动判断接口
Merge pull request !9929 from lixiangpeng5/hd_haptic
This commit is contained in:
commit
858bae34cd
10
api/@ohos.vibrator.d.ts
vendored
10
api/@ohos.vibrator.d.ts
vendored
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user