【文件属性】:
文件名称:Stargate:从Mac到手表的通讯渠道
文件大小:747KB
文件格式:ZIP
更新时间:2021-05-24 20:50:18
Swift
星际之门
从Mac到手表的通讯渠道。
Stargate为和提供了方便的包装,Stargate利用Multipeer Connectivity和App Group在OS X应用程序和iPhone之间通过iPhone进行通信。 通信是双向的,可以让您发送任何符合NSCoding 。
用法
只需通过安装它:
use_frameworks!
pod 'Stargate'
注意:请确保使用或更高版本。 Stargate是用Swift 1.2编写的,因此它也需要Xcode 6.3或更高版本。
在Mac上
通过Multipeer Connectivity发送和接收消息:
let stargate = Earth ( applicationGroupIdentifier : " group.com.contentful.Stargate " )
stargate. listenForMess
【文件预览】:
Stargate-master
----.swift-version(4B)
----Stargate.gif(756KB)
----Example()
--------Mac App()
--------WatchKit App()
--------Podfile(294B)
--------StargateExample.entitlements(306B)
--------Podfile.lock(462B)
--------StargateExample.xcworkspace()
--------StargateExample WatchKit Extension.entitlements(306B)
--------Phone App()
--------Makefile(284B)
--------WatchKit Extension()
--------StargateExample.xcodeproj()
----LICENSE(1KB)
----Stargate.podspec(753B)
----_Carthage.xcodeproj(27B)
----.gitignore(256B)
----circle.yml(266B)
----Makefile(133B)
----README.md(3KB)
----Code()
--------Stargate.swift(6KB)