Skip to main content

bn.offAppShow

offAppShow: (cb: AppShowCallback) => void

description Un-listens on the event that Mini Program is switched to foreground.

example

const handler = () => {}bn.onAppShow(handler)bn.offAppShow(handler)

Type declaration

▸ (cb): void

Parameters

NameType
cbAppShowCallback

Returns

void


AppShowCallback#

Ƭ AppShowCallback: (result: LaunchShowOptions) => void

Type declaration

▸ (result): void

Parameters

NameType
resultLaunchShowOptions

Returns

void


LaunchShowOptions#

Ƭ LaunchShowOptions: Object

Type declaration

NameType
pathstring
queryQuery
scenenumber
referrerInfo?{ appId?: string ; extraData?: object }
referrerInfo.appId?string
referrerInfo.extraData?object

Query#

Ƭ Query: Object