Skip to main content

bn.getEnterOptionsSync

getEnterOptionsSync: () => LaunchShowOptions

description Gets the parameters when the applet starts. If the current startup is cold, the return value is the same as the callback parameter for onLaunch; If the current is a hot start, the return value is the same as onShow.

example

const { path, scene, query, referrerInfo } = getEnterOptionsSync()

Type declaration

▸ (): LaunchShowOptions

Returns

LaunchShowOptions

LaunchShowOptions#

Ƭ LaunchShowOptions: Object

Type declaration

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

Query#

Ƭ Query: Object