RSDK

Tells the delegate that the user left the specified region.

  • Tells the delegate that the authorization status for the application changed.

    Declaration

    Swift

    public func locationManager(manager: CLLocationManager!, didChangeAuthorizationStatus status: CLAuthorizationStatus)

    Parameters

    manager

    The location manager object reporting the event.

    status

    The new authorization status for the application.

  • Tells the delegate about the state of the specified region.

    Declaration

    Swift

    public func locationManager(manager: CLLocationManager!, didDetermineState state: CLRegionState, forRegion region: CLRegion!)

    Parameters

    manager

    The location manager object reporting the event.

    state

    The state of the specified region. For a list of possible values, see the CLRegionState type.

    region

    The region whose state was determined.

  • Tells the delegate that the user entered the specified region.

    Declaration

    Swift

    public func locationManager(manager: CLLocationManager!, didEnterRegion region: CLRegion!)

    Parameters

    manager

    The location manager object reporting the event.

    region

    An object containing information about the region that was entered.

  • Tells the delegate that the user left the specified region.

    Declaration

    Swift

    public func locationManager(manager: CLLocationManager!, didExitRegion region: CLRegion!)

    Parameters

    manager

    The location manager object reporting the event.

    region

    An object containing information about the region that was exited.

  • Tells the delegate that one or more beacons are in range.

    Declaration

    Swift

    public func locationManager(manager: CLLocationManager!, didRangeBeacons beacons: [AnyObject]!, inRegion region: CLBeaconRegion!)

    Parameters

    manager

    The location manager object reporting the event.

    beacons

    An array of CLBeacon objects representing the beacons currently in range. If beacons is empty, you can assume that no beacons matching the specified region are in range. When a specific beacon is no longer in beacons, that beacon is no longer received by the device. You can use the information in the CLBeacon objects to determine the range of each beacon and its identifying information.

    region

    The region object containing the parameters that were used to locate the beacons.

  • Tells the delegate that new location data is available.

    Declaration

    Swift

    public func locationManager(manager: CLLocationManager!, didUpdateLocations locations: [AnyObject]!)

    Parameters

    manager

    The location manager object that generated the update event.

    locations

    An array of CLLocation objects containing the location data. This array always contains at least one object representing the current location. If updates were deferred or if multiple locations arrived before they could be delivered, the array may contain additional entries. The objects in the array are organized in the order in which they occurred. Therefore, the most recent location update is at the end of the array.

  • Invoked when the central manager’s state is updated.

    Declaration

    Swift

    public func centralManagerDidUpdateState(central: CBCentralManager!)

    Parameters

    central

    The central manager whose state has changed.

  • Invoked when the central manager discovers a peripheral while scanning.

    Declaration

    Swift

    public func centralManager(central: CBCentralManager!, didDiscoverPeripheral peripheral: CBPeripheral!, advertisementData: [NSObject : AnyObject]!, RSSI: NSNumber!)

    Parameters

    central

    The central manager providing the update.

    peripheral

    The discovered peripheral.

    advertisementData

    A dictionary containing any advertisement data.

    RSSI

    The current received signal strength indicator (RSSI) of the peripheral, in decibels.