KTKBeaconManagerDelegate Protocol Reference

Conforms to NSObject
Declared in KTKBeaconManager.h

Overview

The delegate of a KTKBeaconManager object must adopt the KTKBeaconManagerDelegate protocol.

Core Location Authorization

– beaconManager:didChangeLocationAuthorizationStatus:

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

- (void)beaconManager:(KTKBeaconManager *)manager didChangeLocationAuthorizationStatus:(CLAuthorizationStatus)status

Parameters

manager

The beacon manager object reporting the event.

status

The new authorization status for the application.

Discussion

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

Declared In

KTKBeaconManager.h

– locationManagerDidChangeAuthorization:

Tells the delegate that the authorization status for the application changed iOS 14.0+.

- (void)locationManagerDidChangeAuthorization:(CLLocationManager *)manager

Parameters

manager

The beacon manager object reporting the event.

Discussion

Tells the delegate that the authorization status for the application changed iOS 14.0+.

Declared In

KTKBeaconManager.h

Monitoring Beacon Regions Reporting

– beaconManager:didStartMonitoringForRegion:

Tells the delegate that a new region is being monitored.

- (void)beaconManager:(KTKBeaconManager *)manager didStartMonitoringForRegion:(__kindof KTKBeaconRegion *)region

Parameters

manager

The beacon manager object reporting the event.

region

The region that is being monitored.

Discussion

Tells the delegate that a new region is being monitored.

Declared In

KTKBeaconManager.h

– beaconManager:monitoringDidFailForRegion:withError:

Tells the delegate that a region monitoring error occurred.

- (void)beaconManager:(KTKBeaconManager *)manager monitoringDidFailForRegion:(__kindof KTKBeaconRegion *_Nullable)region withError:(NSError *_Nullable)error

Parameters

manager

The beacon manager object reporting the event.

region

The region for which the error occurred.

error

An error object containing the error code that indicates why region monitoring failed.

Discussion

Tells the delegate that a region monitoring error occurred.

Declared In

KTKBeaconManager.h

– beaconManager:didEnterRegion:

Tells the delegate that the user entered the specified region.

- (void)beaconManager:(KTKBeaconManager *)manager didEnterRegion:(__kindof KTKBeaconRegion *)region

Parameters

manager

The beacon manager object reporting the event.

region

An object containing information about the region that was entered.

Discussion

Tells the delegate that the user entered the specified region.

Declared In

KTKBeaconManager.h

– beaconManager:didExitRegion:

Tells the delegate that the user left the specified region.

- (void)beaconManager:(KTKBeaconManager *)manager didExitRegion:(__kindof KTKBeaconRegion *)region

Parameters

manager

The beacon manager object reporting the event.

region

An object containing information about the region that was exited.

Discussion

Tells the delegate that the user left the specified region.

Declared In

KTKBeaconManager.h

– beaconManager:didDetermineState:forRegion:

Tells the delegate about the state of the specified region. (required)

- (void)beaconManager:(KTKBeaconManager *)manager didDetermineState:(CLRegionState)state forRegion:(__kindof KTKBeaconRegion *)region

Parameters

manager

The beacon 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.

Discussion

Tells the delegate about the state of the specified region. (required)

Declared In

KTKBeaconManager.h

Ranging Beacons

– beaconManager:didRangeBeacons:inRegion:

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

- (void)beaconManager:(KTKBeaconManager *)manager didRangeBeacons:(NSArray<CLBeacon*> *)beacons inRegion:(__kindof KTKBeaconRegion *)region

Parameters

manager

The beacon 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.

region

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

Discussion

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

Declared In

KTKBeaconManager.h

– beaconManager:rangingBeaconsDidFailForRegion:withError:

Tells the delegate that a region monitoring error occurred.

- (void)beaconManager:(KTKBeaconManager *)manager rangingBeaconsDidFailForRegion:(__kindof KTKBeaconRegion *_Nullable)region withError:(NSError *_Nullable)error

Parameters

manager

The beacon manager object reporting the event.

region

The region for which the error occurred.

error

An error object containing the error code that indicates why region monitoring failed.

Discussion

Tells the delegate that a region monitoring error occurred.

Declared In

KTKBeaconManager.h