updateVolume
Requires:
BaseKit≥2.4.3@ray-js/ray≥0.5.9
Platforms:
iOSAndroid
Method signature
updateVolume(params: )Minimum SDK versions
- iOS
ThingSmartBaseKitBizBundle - ≥ 5.2.1
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 5.2.0
Description
Set system volume
Parameters
| Property | Type | Required | Default | Description | BaseKit Since | Minimum SDK versions |
|---|---|---|---|---|---|---|
value | number | Yes | - | Volume, range [0 - 1] | - | — |
volumeMode | number[] | No | [2] | Volume type (Android only) 0: Voice call volume 1: System volume 2: Ringtone, notifications, system default sounds, etc. 3: Media volume 4: Alarm volume 5: Notification volume 6: Bluetooth volume | v3.3.3 | — |
complete | () => void | No | - | Completion callback (executed on both success and failure) | - | — |
success | () => void | No | - | Callback on successful API call | - | — |
fail | (params: Object) => void | No | - | Failure callback | - | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None