Skip to main content

setStatusBar

Note
This function is in development.

Supported Version​

zpa
Only supported in Zalopay App

Description​

Adjust color, hide/show device status bar

Parameters​

ParamData typeRequiredDescription
hiddenbooleanYesHide or show the status bar
backgroundColorstringYesStatus bar color (hex color system)

Return Value​

N/A

Error Code​

N/A

Sample Code and Sample Return Data​

Sample Request:

window.zlpSdk.UI
.setStatusBar({ backgroundColor: "#FF00EE", hidden: false})
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));

Sample Response:

{ data: {}, status: "success" }