Mini App Document Mini App Document
  • Start
  • Configuration
  • Framework
  • Custom Components
  • Basic ability
  • Configuration
  • Interface
  • FXML syntax
  • FXS syntax
API
Components
IDE
  • Developer
  • Operator
  • Start
  • Configuration
  • Framework
  • Custom Components
  • Basic ability
  • Configuration
  • Interface
  • FXML syntax
  • FXS syntax
API
Components
IDE
  • Developer
  • Operator
  • API overview
  • Basics
  • Routing
  • Jump
    • Jump
    • navigateToMiniProgram
    • navigateBackMiniProgram
    • exitMiniProgram
  • Forwarding
  • Interface
  • Network
  • Data caching
  • Media
  • Map
  • Location
  • File
  • Device
  • Canvas
  • FXML
  • Customize the menu
  • Other
  • API
2022-08-09
Directory

Jump

# Jump

# navigateToMiniProgram

Base Library 1.3.9 is supported, iOS version 2.1.23, Android version 2.1.38

navigateToMiniProgram(Object object)

Open another MiniApp

Parameters

Object object

Properties Type The default value is Required illustrate
appId string Yes The appId of the MiniApp to open
path string No The path of the page that opens, or the home page if empty. path ? The latter part becomes a query, and the query data can be obtained in the callback functions of App.onLaunch, App.onShow and Page.onLoad of the Mini App or the ft.onShow callback functions of the Mini Game and ft.getLaunchOptionsSync. For mini-games, you can pass in only the query part to achieve the parameter effect, such as :?foo=bar.
extraData Object No The data that needs to be passed to the target Mini App can be obtained by the Target Mini App in App.onLaunch, App.onShow. If you jump to a mini-game, you can get this data in ft.onShow, ft.getLaunchOptionsSync.
success function No The interface calls the callback function successfully
fail function No The interface callback function failed to call
complete function No The callback function at the end of the interface call (both successful and failed

Example

# navigateBackMiniProgram

Base Library 1.3.9 is supported, iOS version 2.1.23, Android version 2.1.38

navigateBackMiniProgram(Object object)

Parameters

Object object

Properties Type The default value is Required Description
extraData Object {} No The data that needs to be returned to the previous MiniApp can be retrieved in App.onShow.
success function No The interface calls the callback function successfully
fail function No The callback function that failed the interface callback function
complete function No The callback function at the end of the interface call (the call succeeds or fails to execute the

Sample Code

# exitMiniProgram

ft.exitMiniProgram(Object object)

Exit the current MiniApp. There must be a click behavior for the call to succeed.

Parameters

Object object

Properties Type The default value is Required Description
success function No The interface calls the callback function successfully
fail function No The callback function that failed the interface callback function
complete function No The callback function at the end of the interface call (the call succeeds or fails)
Last update: 2022/08/16, 21:24:25
Routing
Forwarding

← Routing Forwarding→

Copyright © 2020-2024 Neuxnet
  • Follow System
  • Light Mode
  • Dark Mode
  • Reading Mode