Requires:
MiniKit≥1.0.0@ray-js/ray≥0.3.23
Platforms:
iOSAndroid

Navigate to a new page

PropertyTypeRequiredDefaultDescriptionMiniKit Since
urlstringYes-Page path; parameters must be URL-encoded-
typestringNo"full"Open mode; supports full-screen full and half-screen half; default: fullv2.6.0
topMarginnumberNo100Distance from the top of the screen for non-full-screen pages; effective when type is half. Range: [1–screen height], unit: px. Note: On Android, the display area excludes the status bar; on iOS, it includes the status bar. Therefore, on Android, the maximum topMargin is screen height minus the status bar height.v3.11.3
topMarginPercentnumberNo-Percentage distance from the top of the screen for non-full-screen pages; effective when type is half and has higher priority than topMargin. Range: [1–99], unit: percent. Note: On Android, the display area excludes the status bar; on iOS, it includes the status bar.v3.11.3
animationTypestringNo-Specify the page enter animation; currently supports "slide-in-bottom". If not specified, the default style is used.v3.26.0
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