BeaconMonitor- Swift 框架

网友投稿 733 2022-10-13

BeaconMonitor- Swift 框架

BeaconMonitor-  Swift 框架

BeaconMonitor 是 Swift 框架用来监控和排列 iBeacons。

import BeaconMonitorimport CoreLocationclass 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)")    }}

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:再见Postman!一款更适合国人的接口管理工具
下一篇:SYFramework- PHP 框架
相关文章

 发表评论

暂时没有评论,来抢沙发吧~