mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 01:11:35 +00:00
change api version for error
Signed-off-by: magekkkk <lixin113@huawei.com>
This commit is contained in:
parent
af727e9066
commit
63900f9c4b
6
api/@ohos.multimedia.systemSoundManager.d.ts
vendored
6
api/@ohos.multimedia.systemSoundManager.d.ts
vendored
@ -300,21 +300,21 @@ declare namespace systemSoundManager {
|
||||
* @enum { number }
|
||||
* @syscap SystemCapability.Multimedia.SystemSound.Core
|
||||
* @systemapi
|
||||
* @since 12
|
||||
* @since 13
|
||||
*/
|
||||
enum ToneHapticsFeature {
|
||||
/**
|
||||
* Standard haptics feature.
|
||||
* @syscap SystemCapability.Multimedia.SystemSound.Core
|
||||
* @systemapi
|
||||
* @since 12
|
||||
* @since 13
|
||||
*/
|
||||
STANDARD = 0,
|
||||
/**
|
||||
* Gentle haptics feature.
|
||||
* @syscap SystemCapability.Multimedia.SystemSound.Core
|
||||
* @systemapi
|
||||
* @since 12
|
||||
* @since 13
|
||||
*/
|
||||
GENTLE = 1,
|
||||
}
|
||||
|
10
api/multimedia/systemTonePlayer.d.ts
vendored
10
api/multimedia/systemTonePlayer.d.ts
vendored
@ -50,7 +50,7 @@ export interface SystemTonePlayer {
|
||||
* @throws { BusinessError } 20700002 - Parameter check error. For example, value is outside [0,1].
|
||||
* @syscap SystemCapability.Multimedia.SystemSound.Core
|
||||
* @systemapi
|
||||
* @since 12
|
||||
* @since 13
|
||||
*/
|
||||
setAudioVolumeScale(scale: number): void;
|
||||
|
||||
@ -60,7 +60,7 @@ export interface SystemTonePlayer {
|
||||
* @throws { BusinessError } 202 - Caller is not a system application.
|
||||
* @syscap SystemCapability.Multimedia.SystemSound.Core
|
||||
* @systemapi
|
||||
* @since 12
|
||||
* @since 13
|
||||
*/
|
||||
getAudioVolumeScale(): number;
|
||||
|
||||
@ -71,7 +71,7 @@ export interface SystemTonePlayer {
|
||||
* @throws { BusinessError } 20700003 - Unsupported operation.
|
||||
* @syscap SystemCapability.Multimedia.SystemSound.Core
|
||||
* @systemapi
|
||||
* @since 12
|
||||
* @since 13
|
||||
*/
|
||||
getSupportedHapticsFeatures(): Promise<Array<systemSoundManager.ToneHapticsFeature>>;
|
||||
|
||||
@ -86,7 +86,7 @@ export interface SystemTonePlayer {
|
||||
* @throws { BusinessError } 20700003 - Unsupported operation.
|
||||
* @syscap SystemCapability.Multimedia.SystemSound.Core
|
||||
* @systemapi
|
||||
* @since 12
|
||||
* @since 13
|
||||
*/
|
||||
setHapticsFeature(hapticsFeature: systemSoundManager.ToneHapticsFeature): void;
|
||||
|
||||
@ -97,7 +97,7 @@ export interface SystemTonePlayer {
|
||||
* @throws { BusinessError } 20700003 - Unsupported operation.
|
||||
* @syscap SystemCapability.Multimedia.SystemSound.Core
|
||||
* @systemapi
|
||||
* @since 12
|
||||
* @since 13
|
||||
*/
|
||||
getHapticsFeature(): systemSoundManager.ToneHapticsFeature;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user