LocationPermissionsDelegate
@objc
public protocol LocationPermissionsDelegate
The LocationPermissionsDelegate
protocol defines a set of optional methods that you
can use to receive location permission events.
-
Tells the delegate that an attempt to locate the user’s position failed.
Declaration
Swift
@objc optional func locationManager(_ locationManager: LocationManager, didFailToLocateUserWithError error: Error)
Parameters
locationManager
The location manager that is tracking the user’s location.
error
An error object containing the reason why location tracking failed.
-
Tells the delegate that an attempt to locate the user’s position failed.
Declaration
Swift
@objc optional func locationManager(_ locationManager: LocationManager, didChangeAccuracyAuthorization accuracyAuthorization: CLAccuracyAuthorization)
Parameters
locationManager
The location manager that is tracking the user’s location.
error
An error object containing the reason why location tracking failed.