switchTab(params: Object)
Requires:
MiniKit≥1.0.0@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Description
Switch to a tabBar page and close all other non-tabBar pages
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Page path; parameters are not supported |
complete | () => void | No | Completion callback (executed on both success and failure) |
success | () => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None