Last active
May 24, 2020 17:50
-
-
Save MrCrambo/9fa200ca5031ba34181edc23d2f3d0fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
For BLUETOOTH scans. | |
Create CBCentralManager class element and call its method for scanning Bluetooth devices. | |
Here is the function declaration | |
*/ | |
func scanForPeripherals(withServices serviceUUIDs: [CBUUID]?, options: [String : Any]? = nil) | |
/* | |
For BEACONS scan. | |
Create CLLocationManager class element and call its method for ranging Beacons. | |
Here is the function declarations | |
*/ | |
func startRangingBeacons(satisfying constraint: CLBeaconIdentityConstraint) | |
func startMonitoring(for region: CLRegion) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment