UALocationProviderDelegate

@protocol UALocationProviderDelegate <NSObject>

Protocol for bridging location providers with the SDK.

  • Flag to enable/disable location updates.

    Declaration

    Objective-C

    @property (getter=isLocationUpdatesEnabled, assign, readwrite, nonatomic)
        BOOL locationUpdatesEnabled;

    Swift

    var isLocationUpdatesEnabled: Bool { get set }
  • Flag to allow/disallow location updates in the background.

    Declaration

    Objective-C

    @property (getter=isBackgroundLocationUpdatesAllowed, assign, readwrite,
              nonatomic) BOOL backgroundLocationUpdatesAllowed;

    Swift

    var isBackgroundLocationUpdatesAllowed: Bool { get set }
  • Check if the user has opted in to location updates.

    Declaration

    Objective-C

    - (BOOL)isLocationOptedIn;

    Swift

    func isLocationOptedIn() -> Bool

    Return Value

    YES if location updates are enabled and the user has authorized the app to use location services.

  • Check if the user has denied or restricted the app’s request to use location services.

    Declaration

    Objective-C

    - (BOOL)isLocationDeniedOrRestricted;

    Swift

    func isLocationDeniedOrRestricted() -> Bool

    Return Value

    YES if the user has denied or restricted the app’s request to use location services.

  • Returns an enum representing the app’s authorization status for location services.

    Declaration

    Objective-C

    - (UALocationProviderPermissionStatus)locationPermissionStatus;

    Swift

    func locationPermissionStatus() -> UALocationProviderPermissionStatus

    Return Value

    The location permission status.