23 lines
406 B
TypeScript
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
|
||
|
}
|