Skip to main content

bn.onAppShow

onAppShow: (cb: AppShowCallback) => void

description Listens on the event that Mini Program is switched to foreground. The callback timing for this event is consistent with that of App.onShow. Use bn.onShow, bn.offShow for MiniGame.

example

bn.onAppShow((payload) => {  console.log(payload);})

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