Skip to content

Navigation

Open the URL in a new full-screen WebView page.

// Open new page
SuperSDK.openPage('https://example.com');
// With configuration (currently, no features are configured in config)
SuperSDK.openPage('https://example.com', {});

Parameter Description:

ParameterTypeDescription
urlstringURL to open
optionsobjectConfiguration object (no available configurations currently, reserved for extension)

Note: The opened page is a full-screen WebView without any native title bar obstruction. The page can be closed by calling closePage().

Close the current page.

SuperSDK.closePage();

Note: Calling this method in a TAB page has no effect.

Open URL using system method (jump to external app).

// Open App Store
SuperSDK.openExternal('market://details?id=com.example.app');
// Make a phone call
SuperSDK.openExternal('tel:10086');
// Send email
SuperSDK.openExternal('mailto:[email protected]');

Open the URL using the system browser.

SuperSDK.openWithBrowser('https://www.google.com');