vision-embedded-web
Version:
Cubic Vision methods for embedded web content.
28 lines (27 loc) • 1.43 kB
TypeScript
import { RequestStatus } from './requests';
export declare type LogTypes = 'debug' | 'info' | 'error' | 'warning';
export declare type FsSearchTypes = 'contains' | 'startsWith' | 'endsWith';
export interface ICubicPlayer {
getStoreValue?(key: string): string | Promise<string>;
saveStoreValue?(key: string, value: string, useAfterRepublishing: boolean): void | Promise<void>;
getVar?(varName: string): string | Promise<string>;
goToScene?(sceneId: number): void;
goToPreviousScene?(): void;
writeLogToFile?(logType: LogTypes, logText: string): void;
onWebContentReady?(): void;
changeAppVisibility?(visible: boolean): void;
getAppVisibility?(): boolean | Promise<boolean>;
findFileLine?(filePath: string, type: FsSearchTypes, search: string, fromEnd: boolean): string | Promise<string>;
readDirectory?(dirPath: string): string | Promise<string>;
getAppDataPath?(): string | Promise<string>;
getCurrentWebContentPath?(): string | Promise<string>;
joinPathes?(jsonStrArr: string): string | Promise<string>;
executeInCommandLine?(command: string): string | Promise<string>;
invoke?(jsonData: string): string | Promise<string>;
emit?(jsonData: string): void;
request?(requestId: string, jsonData: string): RequestStatus | Promise<RequestStatus>;
}
export declare type CubicPlayerEvent = {
type: 'closeKeyboard';
payload: null;
};