Requires:
BaseKit≥2.2.4@ray-js/ray≥0.3.23
Platforms:
iOSAndroid

Open another miniapp

PropertyTypeRequiredDefaultDescriptionBaseKit Since
appIdstringNo-appId of the miniapp to open-
aiPtChannelstringNo-Agent ID of the agent miniapp to openv3.13.0
aiPtTypestringNo"release"Version of the agent miniapp to open. preview: preview version release: release versionv3.13.0
pathstringNo-Page path to open; if empty, the home page opens. The part after ? in path becomes the query and is available in the callbacks of `App.onLaunch`, `App.onShow`, and `Page.onLoad`-
positionstringNo"right"Transition type when opening the miniapp: right | bottom, indicating horizontal and vertical directionsv2.5.1
No-Data to pass to the target miniapp; the target can access it in `App.onLaunch` and `App.onShow`-
envVersionstringNo"release"Version of the miniapp to open. This parameter is valid only when the current miniapp is a dev or trial build. If the current miniapp is release, the opened miniapp must be release. trial: trial version release: release version-
shortLinkstringNo-Miniapp link. When this parameter is provided, appId and path can be omitted-
complete() => voidNo-Completion callback (executed on both success and failure)-
success() => voidNo-Callback on successful API call-
fail(params: Object) => voidNo-Failure callback-
fail callback parameters
PropertyTypeDescription
errorMsgstringError message
errorCodestring | numberError code
Error extension

None