UNPKG

coolink

Version:

Coocaa Coolink APP JavaScript library

20 lines (19 loc) 1.06 kB
import VNode from '../core/VNode'; import { PageInfo } from '../types/type'; import { ToastInfo } from '../types/widget'; export default class RenderManager { static get currentPage(): PageInfo | void; static pageNotFound(nextPath: string): void; static pushPage(renderTree: VNode, pageName: string, createTimestamp: number): void; static pushReplacement(renderTree: VNode, pageName: string, createTimestamp: number): void; static popPage(): Promise<void>; static showModal(modalRenderTree: VNode, title: string, popup: boolean): void; static hideModal(): Promise<void>; static showToast(toastRenderTree: VNode, toastInfo?: ToastInfo): void; static hideToast(toastName: string): void; static setResourcePath(path: string): void; static updateWidget(updateRenderTree: VNode, needUpdateWidgetId: string, invokeDidUpdateWidgetId: string, pageName: string): void; static stopAlwaysRender(contextId?: string): void; static getMediaQuery(jsVersion: string): void; private static _buildPage; }