使用Watch OS2拨打电话 [英] Phone call with Watch OS2

查看:112
本文介绍了使用Watch OS2拨打电话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用Watch OS 2从手表开始通话? 我的手表os2应用程序中有一个按钮,我需要一种从手表开始拨打预编译号码的电话,或者至少要在iPhone中开始拨打电话的方法. 谢谢

Is it possible to start a call from the watch using Watch OS 2? I have a button in my watch os2 app and I need a way to start a call to a precompiled number from the watch or at least to start the call in the iPhone. Thanks

推荐答案

是的,在WatchOS 2上是可能的:

Yes it is possible on WatchOS 2:

应用程序可以使用共享的WKExtension对象的openSystemURL:方法来发起电话或SMS消息.当您打开使用tel或sms方案的URL时,Apple Watch会将该URL重定向到适当的系统应用程序进行处理.您也可以使用openSystemURL:方法打开存折URL,以打开与PKPass对象关联的URL.

Apps can initiate telephone calls or SMS messages using the openSystemURL: method of the shared WKExtension object. When you open a URL that uses the tel or sms scheme, Apple Watch redirects that URL to the appropriate system app for handling. You can also open Passbook URLs by using the openSystemURL: method to open the URL associated with a PKPass object.

这篇关于使用Watch OS2拨打电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆