Swift 框架 BeaconMonitor
- 授权协议: MIT
- 开发语言: Swift
- 操作系统: 跨平台
- 软件首页: https://github.com/sebk/BeaconMonitor
软件介绍
BeaconMonitor 是 Swift 框架用来监控和排列 iBeacons。
import BeaconMonitor
import CoreLocation
class ListenViewController: UIViewController {
var monitor: BeaconMonitor?
override func viewDidLoad() {
super.viewDidLoad()
monitor = BeaconMonitor(uuid: NSUUID(UUIDString: uuidTextfield.text!)!)
monitor!.delegate = self
monitor!.startListening()
}
}
extension ListenViewController: BeaconMonitorDelegate {
@objc func receivedAllBeacons(monitor: BeaconMonitor, beacons: [CLBeacon]) {
print("All Beacons: \(beacons)")
}
@objc func receivedMatchingBeacons(monitor: BeaconMonitor, beacons: [CLBeacon]) {
print("Matching Beacons: \(beacons)")
}
}CSS 压缩/解压工具
在线压缩/解压 CSS 代码
Markdown 在线编辑器
Markdown 在线编辑器
