# getAllSiriShortcuts ^7.8
获取所有快捷指令(iOS)
# 调用方式
getAllSiriShortcuts(params)
1
返回 Promise,使用 then/catch 或 await 处理结果。 接收单个业务参数;是否需要传参按下方参数表约定,无业务参数时可省略。具体字段及返回数据由宿主原生约定。
# 请求参数
参数对象字段由宿主约定;调用签名见上方。
# 接口调用示例
this.$bridge.getAllSiriShortcuts()
1
# 返回参数
| Prop | Type | Default | Description |
|---|---|---|---|
| list | Array | 指令列表 |
# 接口返回示例
this.$bridge.getAllSiriShortcuts().then((res) => {
this.allSiriShortcuts = res.list || [];
});
1
2
3
2
3