iOS Siri调用自己应用的视频呼叫功能

使用Siri打开自己的应用并触发自己应用的呼叫视频或者语音功能

1.使用Siri这个功能,首先要引入SiriKit这个扩展程序(App Extension).

1.创建一个应用扩展.

    在自己的项目下,通过 file->new->target->Intenst Extension. 而在next 后,Product name 设置扩展程序名字,Project选项看是自己的项目吗 ,Embed in Application 是不是自己的项目 如果都是那就点击finish完成.

Add an Intents App Extension to Your Project

Adding an Intents app extension target provides the initial files you need to build your Intents extension and configures your Xcode project to build that extension and include it in your app’s bundle.

  1. Open your existing app project in Xcode.

  2. Choose File > New > Target.

  3. Select Intents extension from the Application Extension group of the iOS or watchOS platform.

  4. Click Next.

  5. Specify the name of your extension and configure the language and other options. 

  6. For an iOS app, enable the Include UI Extension option if you plan to customize portions of the Siri interface.

  7. Click Finish. 

Note

You may add more than one Intents extension to your app, but each extension must support different intents. Create multiple extensions only if doing so provides a performance advantage or reduces the memory footprint of each extension.



2.修改默认的Intens事件

Intens事件有

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值