MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / customTab

Function customTab

src/lib/customTab.ts:6–22  ·  view source on GitHub ↗
(
  url: string,
  options?: {
    showTitle?: boolean;
    toolbarColor?: string;
  },
)

Source from the content-addressed store, hash-verified

4 * Open custom tab
5 */
6export default function customTab(
7 url: string,
8 options?: {
9 showTitle?: boolean;
10 toolbarColor?: string;
11 },
12) {
13 if (!options) {
14 options = {};
15 }
16
17 options.showTitle ??= true;
18
19 return new Promise((resolve, reject) => {
20 cordova.exec(resolve, reject, "CustomTabs", "open", [url, options]);
21 });
22}

Callers 5

buyFunction · 0.85
refundFunction · 0.85
loginMethod · 0.85
openUrlFunction · 0.85
callbackFunction · 0.85

Calls 1

execMethod · 0.65

Tested by

no test coverage detected