MBXLocationServiceObserver

@protocol MBXLocationServiceObserver

Observers for getting updates from LocationService.

  • Called when an availability of location-based service on the device has been changed. This happens when, for example, a user disables geolocation on the device.

    Declaration

    Objective-C

    - (void)onAvailabilityChangedForIsAvailable:(BOOL)isAvailable;

    Parameters

    isAvailable

    True if available, false if it’s not.

  • Called when a user has granted or revoked location permission to the app. Note that this does not work on Android because, in case of permission changes, the system will kill all running processes of the app.

    Declaration

    Objective-C

    - (void)onPermissionStatusChangedForPermission:(MBXPermissionStatus)permission;

    Parameters

    permission

    Updated permission of the app.

  • Called when a user has changed accuracy authorization for the app.

    Declaration

    Objective-C

    - (void)onAccuracyAuthorizationChangedForAuthorization:
        (MBXAccuracyAuthorization)authorization;

    Parameters

    authorization

    Updated accuracy authorization of the app.