isAssociatedShortcut

版本要求:
BizKit≥3.1.1@ray-js/ray≥0.8.0
支持平台:
iOSAndroid
import { isAssociatedShortcut } from '@ray-js/ray';

// Promise 调用
try {
  const res = await isAssociatedShortcut({ ...params });
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

方法签名
isAssociatedShortcut(params: )
SDK 最低版本
iOSThingSmartBizKitBizBundle
≥ 5.2.1
Androidcom.thingclips.smart:thingsmart-bizbundle-bizkit
≥ 5.2.0

描述

获取是否关联 siri 状态, 仅 iOS

参数

属性类型必填说明SDK 最低版本
sceneIdstring是场景 id—
namestring否场景 name—
complete() => void否接口调用结束的回调函数(调用成功、失败都会执行)—
success(params: Object) => void否接口调用成功的回调函数—
fail(params: Object) => void否接口调用失败的回调函数—
success 回调参数
属性类型说明BizKit 最低版本SDK 最低版本
isAssociatedboolean是否已关联v3.1.2—
fail 回调参数
属性类型说明
errorMsgstring错误信息
errorCodestring | number错误码
错误扩展

返回值

无

示例代码

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

isAssociatedShortcut({
  sceneId: "xx",
  name: "xx",
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});