import { SdkResult } from "../Entity"; import { AppInfo } from "../../../model/Entity/AppInfo"; import { SdkBase } from "../webSdk/sdkBase"; export default interface IApp { GetAppInfo(appid: string): Promise>; OpenAppWeb(url: string, appid?: string): Promise>; Close(appId?: string): Promise>; Back(): Promise>; SetAppBadge(appId: string, count: number): Promise>; RegistAppBack(funcObj: () => {}): Promise>; RegistScreenshotCallback(funcObj: () => {}): Promise>; /** * 获取SDK版本 */ GetVersion(): Promise>; ShowWaterMark({ appId, userName, userId, }: { appId: string; userName: string; userId: string; }): Promise>; HideWaterMark({ appId }: { appId: string; }): Promise>; UrlLauncher(url: string): Promise>; /** * 设置页面标题 * @param title */ SetTitle(title: string): Promise>; } export declare abstract class ISdkApp extends SdkBase implements IApp { constructor(); abstract RegistScreenshotCallback(funcObj: () => {}): Promise>; /** * 获取SDK版本 */ GetVersion(): Promise>; abstract RegistAppBack(funcObj: () => {}): Promise>; abstract ShowWaterMark({ appId, }: { appId: string; userName: string; userId: string; }): any; abstract UrlLauncher(url: string): Promise>; abstract HideWaterMark({ appId }: { appId: string; }): any; abstract GetAppInfo(appid: string): Promise>; abstract OpenAppWeb(url: string, appid?: string): Promise>; abstract Close(appId?: string | undefined): Promise>; abstract Back(): Promise>; abstract IsItalk(): Promise>; abstract SetAppBadge(appId: string, count: number): Promise>; /** * 设置页面标题 * @param title */ abstract SetTitle(title: string): Promise>; }