add runtime file:sandbox

This commit is contained in:
pengfei.zhou
2019-07-17 12:41:02 +08:00
parent f52bc08895
commit 771cb338b6
12 changed files with 174 additions and 356 deletions

View File

@@ -0,0 +1,23 @@
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
}