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

Method signature
navigateToMiniProgram(params: )
Minimum SDK versions
iOSThingSmartBaseKitBizBundle
≥ 5.2.1
Androidcom.thingclips.smart:thingsmart-bizbundle-basekit
≥ 5.2.0

Open another miniapp

PropertyTypeRequiredDefaultDescriptionBaseKit SinceMinimum SDK versions
appIdstringNo-appId of the miniapp to open-—
aiPtChannelstringNo-Agent ID of the agent miniapp to openv3.13.0
iOSThingSmartBaseKitBizBundle
≥ 6.0.3
Androidcom.thingclips.smart:thingsmart-bizbundle-basekit
≥ 6.0.0
aiPtTypestringNo"release"Version of the agent miniapp to open. preview: preview version release: release versionv3.13.0
iOSThingSmartBaseKitBizBundle
≥ 6.0.3
Androidcom.thingclips.smart:thingsmart-bizbundle-basekit
≥ 6.0.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—
extraDataRecord<string, any>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