ios开发 调用系统的facetime
来源:互联网 发布:linux wine 编辑:程序博客网 时间:2024/05/16 19:05
openURL:
Opens the resource at the specified URL.
Parameters
- url
An object representing a URL (Universal Resource Locator). UIKit supports the http:, https:, tel:, and mailto: schemes.
Return Value
YES
if the resource located by the URL was successfully opened; otherwise NO
.
Discussion
The URL can locate a resource in the same or other application. If the resource is another application, invoking this method may cause the calling application to quit so the other one can be launched.
You may call canOpenURL:
before calling this one to verify that there is an application that can handle it.
Availability
- Available in iOS 2.0 and later.
See Also
application:handleOpenURL:
(UIApplicationDelegate
)
Declared In
UIApplication.h
公司有一款IM产品,ios平台上想增加voip功能,所以早早的发了个外包,估计不少money,到现在4个月了,还没集成上来。
有一天看到一个类似的产品居然有voip(可视)功能,不是小看它的实力,要是它自己做,肯定一时半会做不出来,而且那界面跟系统的facetime很像,所以断定是调用了系统的facetime,特地研究了下,终于搞明白了,很简单的一一句话就调出了facetime功能。
NSURL* url = [NSURLURLWithString:@"facetime://xxxx"];//xxx就是对方设备上绑定的facetime帐号,可以是纯数字,或者数字加字符
[[UIApplication sharedApplication] openURL:url];
当然类似调用系统功能的schema还有不少 tel://xxx,mailto://xxx,SMS://xxx,http://xxx,https://xxx等等吧,facetime这个在sdk中没有查到,不知到是不是属于私有的,但是那款产品居然通过了appstore,应该是可以用的。
调用下面的代码来进行facetime的呼叫。呼叫后会进入到facetime的功能里面。
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"facetime://xxx"]];
xxx可以是对方的email,也可以是对方的电话号码。
facetime的功能应该是私有api。所以代码中是不能对他进行各种操作的
- ios开发 调用系统的facetime
- iOS调用Facetime App
- 苹果的FACETIME
- iOS开发 调用系统的震动和提示音
- Facetime的扣费陷阱
- ios 开发 调用系统设置项
- ios 开发 调用系统设置项
- ios开发-调用系统自带手势
- ios开发调用系统相机相册
- iOS开发 调用系统相机和相册
- iOS开发--调用系统通讯录界面
- iOS 开发 调用系统设置界面
- iOS开发调用系统通讯录获取电话号码
- iOS开发之调用系统应用
- iOS开发iOS9.0调用系统通讯录
- ios系统相机的调用
- IOS系统照相机的调用
- iOS 系统相机的调用
- 教你如何用Linux实现视频通讯(附代码)
- 如何成为最好的工程师---吴军讲座学习笔记
- Android AlertDialog大全
- Nginx + keepalived 高可用配置文档
- QQ群机器人v1.8(可自动管理QQ群工具)
- ios开发 调用系统的facetime
- JSP Cookie详解
- 最大熵原理
- 求助: 为什么String类型数组poemStr总是越界????
- oracle 查询语句执行的进度
- 由于有外键引用表使得表无法删除ORA-02449
- 性能测试常见用语
- 你知道吗?
- 立马关机,编辑代码保存为vbs文件