TokenWebView.apis.navigator:Route navigation and settings page.
TokenWebView.apis.navigator.setTitle(title: string): void
TokenWebView.apis.navigator.getOrientation(): Promise<"LANDSCAPE" | "PORTRAIT">
TokenWebView.apis.navigator.setOrientation(orientation: LANDSCAPE | PORTRAIT): void
TokenWebView.apis.navigator.closeDapp(): void
TokenWebView.apis.navigator.goBack(): void
TokenWebView.apis.navigator.routeTo(params: RouteToParams): void
TokenWebView.apis.navigator.toggleNavbar(): void
TokenWebView.apis.device:Gets the user's current language setting and currency setting.
TokenWebView.apis.device.getCurrentCurrency(): Promise<"CNY" | "USD" | "TWD" | "HKD">
TokenWebView.apis.device.getCurrentLanguage(): Promise<"zh-CN" | "en-US" | "zh-Hant-US" | "zh-Hant-HK" | "zh-Hant-TW">
TokenWebView.apis.layout:Set the frame layout style.
TokenWebView.apis.layout.setOptions(options: WebViewLayoutOptions): void
TokenWebView.apis.native:Provide native platform UI and interaction capabilities.
TokenWebView.apis.native.alert(content: string): void
TokenWebView.apis.native.confirm(params: ConfirmParams): Promise<boolean>
TokenWebView.apis.native.setLoading(visible: boolean): void
TokenWebView.apis.native.share(params: ShareParams): Promise<OpenReturn>
TokenWebView.apis.native.scanQRCode(): Promise<string>
TokenWebView.apis.native.setClipboard(text: string): void
TokenWebView.apis.user:Switch the user wallet and return wallet address.
TokenWebView.apis.user.showAccountSwitch(chainType?: "ETHEREUM" | "BITCOIN" | "LITECOIN" | "EOS" | "COSMOS" | "TRON" | "BITCOINCASH" | "NERVOS" | "KUSAMA" | "POLKADOT" | "FILECOIN" | null): Promise<string>
TokenWebView.apis.internal:Customize development and debugging process.(Experimental).
TokenWebView.apis.internal.getHeaders(): Promise<string>
NOTICE: private method cannot be called from webview
TokenWebView.apis.internal.setLogo(logo: string): void
TokenWebView.apis.internal.log(...data: any[]): void
General:Check the environment and the processing of generic scenarios.
TokenWebView.isTokenEnv(): boolean
TokenWebView.getVersion(): string
TokenWebView.isGreaterThanOrEqualVersion(version: string): boolean
TokenWebView.compareSemver(v_1?: string, v_2?: string): number