MBXLocationServiceObserver.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxCommon/MBXAccuracyAuthorization.h>
  4. #import <MapboxCommon/MBXPermissionStatus.h>
  5. /** Observers for getting updates from LocationService. */
  6. NS_SWIFT_NAME(LocationServiceObserver)
  7. @protocol MBXLocationServiceObserver
  8. /**
  9. * Called when an availability of location-based service on
  10. * the device has been changed. This happens when, for example,
  11. * a user disables geolocation on the device.
  12. *
  13. * @param isAvailable True if available, false if it's not.
  14. *
  15. */
  16. - (void)onAvailabilityChangedForIsAvailable:(BOOL)isAvailable;
  17. /**
  18. * Called when a user has granted or revoked location permission to the app.
  19. * Note that this does not work on Android because, in case of permission
  20. * changes, the system will kill all running processes of the app.
  21. *
  22. * @param permission Updated permission of the app.
  23. */
  24. - (void)onPermissionStatusChangedForPermission:(MBXPermissionStatus)permission;
  25. /**
  26. * Called when a user has changed accuracy authorization for the app.
  27. *
  28. * @param authorization Updated accuracy authorization of the app.
  29. */
  30. - (void)onAccuracyAuthorizationChangedForAuthorization:(MBXAccuracyAuthorization)authorization;
  31. @end