📝 API 文档
mincu-ui

mincu-ui

Classes

Classes

Class: UIModule

Constructors

constructor

new UIModule()

Properties

backPress

backPress: Object

Type declaration
NameType
bind(cb: () => void, onResulst?: (success: boolean) => void) => () => void
unbind(cb: () => void) => void

orientation

orientation: typeof Orientation

Since

iNCU 5.9.7+


toast

toast: Object

Type declaration
NameType
fail(title: string, during?: number) => Promise<number>
info(title: string, during?: number) => Promise<number>
loading(title: string, during?: number) => Promise<() => void>
remove(key: number) => Promise<void>
success(title: string, during?: number) => Promise<number>

Methods

exit

exit(): void

Returns

void


handleShowHeader

handleShowHeader(value): Promise<boolean>

Parameters
NameType
valueboolean
Returns

Promise<boolean>


setBarStyle

setBarStyle(style): void

Parameters
NameType
styleStatusBarStyle
Returns

void


toScreen

toScreen(config): void

Parameters
NameType
configNavConfig
Returns

void


Instance

Static Instance(): UIModule

Returns

UIModule