Skip to main content

setTitle

Description

Adjust the title displayed in the webview

Parameters

ParamData typeRequiredDescription
titlestringYesTitle in webview navigation bar

Return Value

N/A

Error Code

N/A

Sample Code and Sample Return Data

Sample Request:

window.zlpSdk.UI
.setTitle({ title: "Zalopay" })
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));

Sample Response:

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