setStatusBar
Note
This function is in development.Supported Version
zpa
Only supported in Zalopay AppDescription
Adjust color, hide/show device status bar
Parameters
Param | Data type | Required | Description |
---|---|---|---|
hidden | boolean | Yes | Hide or show the status bar |
backgroundColor | string | Yes | Status 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" }