backToHomeAndOpenPanel(params: Object)

Requires:
BizKit≥3.2.7@ray-js/ray≥1.4.57
Platforms:
iOSAndroid
import { backToHomeAndOpenPanel } from '@ray-js/ray';

// Promise usage
try {
  const res = await backToHomeAndOpenPanel({ ...params });
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

Description

Go back to the home page and open the panel

Parameters

PropertyTypeRequiredDefaultDescriptionBizKit Since
deviceIdstringYes-Device info ID-
No-Additional panel info When navigating to a secondary panel, additional information needs to be passed-
No-Launch parameters carried by the panel-
removeUIInfobooleanNofalseRemove UI info When true, removes the panel’s UI information (including localization)v4.21.2
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

Return Value

None

Examples

import { backToHomeAndOpenPanel } from '@ray-js/ray'

backToHomeAndOpenPanel({
  deviceId: "xx",
  removeUIInfo: false,
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});