setVolume
Note
Please contact Zalopay Team to be granted permission to use this functionality.Supported Version
zpa
Started support in Zalopay App from version 8.26.0Description
Adjust application volume
Parameters
Param | Data type | Required | Description |
---|---|---|---|
volume | number | Yes | Volume value, which is in the range [0, 1] |
Return Value
N/A
Error Code
N/A
Sample Code and Sample Return Data
Sample Request:
window.zlpSdk.Device
.setVolume({ volume: 0.5 })
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));
Sample Response:
{ data: {}, status: "success" }