editSiriInstructShortcut 编辑自定义指令Siri shortcut

editSiriInstructShortcut ^8.7

编辑自定义指令Siri shortcut

#请求参数

Prop Type Default Comment
sceneId String N/A 场景ID
sceneName String N/A 场景名

#接口调用示例

const params = {
    "sceneId": "场景ID",
    "sceneName": "场景名"
}
this.$bridge
  .editSiriInstructShortcut(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })
  • 成功时返回 Object(res)
Prop Type Default Comment
editType string N/A delete :删除 cacel:取消编辑 updte:更新语音指令
invocationPhrase string N/A Siri快捷指令短语

#接口返回示例

{
   "editType":"delete/cacel/update", // delete :删除 cacel:取消编辑 updte:更新语音指令
   "invocationPhrase":"Siri快捷指令短语"
}
posted on 2024-12-17 09:33  AtlasLapetos  阅读(20)  评论(0)    收藏  举报