backToHomeAndOpenPanel

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);
}

Method signature
backToHomeAndOpenPanel(params: )
Minimum SDK versions
iOSThingSmartBizKitBizBundle
≥ 5.2.1
Androidcom.thingclips.smart:thingsmart-bizbundle-bizkit
≥ 5.2.0

Description

Go back to the home page and open the panel

Parameters

PropertyTypeRequiredDefaultDescriptionBizKit SinceMinimum SDK versions
deviceIdstringYes-Device info ID-—
No-Additional panel info When navigating to a secondary panel, additional information needs to be passed-—
initialPropsRecord<string, Record<string, any>>No-Launch parameters carried by the panel-—
removeUIInfobooleanNofalseRemove UI info When true, removes the panel’s UI information (including localization)v4.21.2
iOSThingSmartBizKitBizBundle
≥ 6.11.1
Androidcom.thingclips.smart:thingsmart-bizbundle-bizkit
≥ 6.11.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

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);
  },
});