Skip to content

Instantly share code, notes, and snippets.

@MrCrambo
Last active May 24, 2020 17:50
Show Gist options
  • Save MrCrambo/9fa200ca5031ba34181edc23d2f3d0fc to your computer and use it in GitHub Desktop.
Save MrCrambo/9fa200ca5031ba34181edc23d2f3d0fc to your computer and use it in GitHub Desktop.
/*
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