Skip to main content

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.0

Description

Adjust application volume

Parameters

ParamData typeRequiredDescription
volumenumberYesVolume 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" }