Interface for the SDK, setting up a common ground for the compiler/typescript.

interface ISDK {
    _triggerListeners(type: string, payload: any, widget: IWidget): void;
    closeFullScreen(): void;
    destroyFullScreen(): void;
    getAppWidget(): IAppWidget;
    getMessageListeners(): string[];
    getToken(refresh?: boolean): Promise<string>;
    openFullScreen(url: string): void;
}

Methods

  • Parameters

    • type: string
    • payload: any
    • widget: IWidget

    Returns void

  • Parameters

    • Optionalrefresh: boolean

    Returns Promise<string>