BDPBluedotServiceDelegate
Objective-C
@protocol BDPBluedotServiceDelegate <NSObject>
Swift
protocol BDPBluedotServiceDelegate : NSObjectProtocol
Defines the call-backs which Point SDK makes to inform the Application of Bluedot service level events.
Assign your own implementation of this protocol to the BDLocationManager.bluedotServiceDelegate
property of the
shared BDLocationManager
instance, to handle Bluedot service level related callbacks.
-
This method can be implemented to keep track of changes in Location Manager’s CLAuthorizationStatus.
This method is called whenever location authorization status changes.
You may wish to communicate to your user when location authorization status changes. For example, you may wish to ask for “Always” or “When in Use” authorization from within your app.
Declaration
Objective-C
- (void)locationAuthorizationDidChangeFromPreviousStatus: (CLAuthorizationStatus)previousAuthorizationStatus toNewStatus: (CLAuthorizationStatus) newAuthorizationStatus;
Swift
optional func locationAuthorizationDidChange(fromPreviousStatus previousAuthorizationStatus: CLAuthorizationStatus, toNewStatus newAuthorizationStatus: CLAuthorizationStatus)
Parameters
previousAuthorizationStatus
Previous authorization status
newAuthorizationStatus
Current authorization status
-
This method can be implemented to monitor whether the iOS ‘Low Power Mode’ has been enabled or disabled.
This method is called whenever low power mode status changes in the device.
The callback is required because Low Power mode negatively impacts the timeliness and precision of Point SDK, which your Application may need to communicate to the user.
Declaration
Objective-C
- (void)lowPowerModeDidChange:(_Bool)isLowPowerMode;
Swift
optional func lowPowerModeDidChange(_ isLowPowerMode: Bool)
Parameters
isLowPowerMode
Indicates whether the device is in Low power mode
-
This method is called if Bluedot Error encouters an error.
Declaration
Objective-C
- (void)bluedotServiceDidReceiveError:(NSError *)error;
Swift
optional func bluedotServiceDidReceiveError(_ error: (any Error)!)
Parameters
error
Details from NSError objects delivered here are intended for development logging purposes and are not intended to be seen by your application’s users.
-
Available from iOS 14. This method can be implemented to keep track of changes in Location Manager’s CLAccuracyAuthorization .
This method is called whenever accuracy authorization status changes.
You may wish to communicate to your user when accuracy authorization changes. For example, you may wish to ask for Full Accuracy authorization from within your app.
Declaration
Objective-C
- (void)accuracyAuthorizationDidChangeFromPreviousAuthorization: (CLAccuracyAuthorization)previousAccuracyAuthorization toNewAuthorization: (CLAccuracyAuthorization) newAccuracyAuthorization;
Swift
optional func accuracyAuthorizationDidChange(fromPreviousAuthorization previousAccuracyAuthorization: CLAccuracyAuthorization, toNewAuthorization newAccuracyAuthorization: CLAccuracyAuthorization)
Parameters
previousAccuracyAuthorization
Previous accuracy authorization
newAccuracyAuthorization
Current accuracy authorization