UNPKG

hybrid_plus

Version:

Hybrid Flutter Javascript SDK

31 lines (30 loc) 905 B
import { ExecOptions } from "../types/core.ts"; import { AddWaterMarkOptions } from "../types/webview.ts"; /** * 获取当前轻应用 Id * @param options * @module webview */ export declare function getAppId(options: ExecOptions<string, any>): Promise<unknown>; /** * 清除 WebView 缓存 * @module webview */ export declare function clearCache(): void; /** 退出当前页面 */ export declare function exit(args: any): void; /** 为当前页面添加水印 */ export declare function addWaterMark(options: AddWaterMarkOptions): void; /** 移除当前页面水印 */ export declare function removeWaterMark(): void; /** * 设置当前页面的背景色 * @param {string} color 背景颜色值 * @module webview */ export declare function setBackgroundColor(color: string): void; /** * 还原当前页面背景色 * @module webview */ export declare function clearBackgroundColor(): void;