This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/js-framework/src/mock/driver.ts
2019-07-17 12:41:02 +08:00

23 lines
406 B
TypeScript

import { Page } from '../ui/page'
import { View } from '../ui/view'
export interface Driver {
/**
* Create and destory page
*/
createPage(): Page
destoryPage(): Page
/**
* Page lifecycle
*/
dispatchOnCreate(): void
dispatchOnDestory(): void
dispatchOnShow(): void
dispatchOnHidden(): void
/**
* Page render
*/
dispatchBuild(): View
}