MBMOfflineRegionObserver.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBMOfflineRegionStatus;
  4. @class MBMResponseError;
  5. /**
  6. * A region can have a single observer, which gets notified whenever a change
  7. * to the region's status occurs.
  8. */
  9. NS_SWIFT_NAME(OfflineRegionObserver)
  10. __attribute__((deprecated))
  11. @protocol MBMOfflineRegionObserver
  12. /**
  13. * Implement this method to be notified of a change in the status of an
  14. * offline region. Status changes include any change in state of the members
  15. * of `offline region status`.
  16. */
  17. - (void)statusChangedForStatus:(nonnull MBMOfflineRegionStatus *)status;
  18. /**
  19. * Implement this method to be notified of errors encountered while downloading
  20. * regional resources. Such errors may be recoverable; for example the implementation
  21. * will attempt to re-request failed resources based on an exponential backoff
  22. * algorithm, or when it detects that network access has been restored.
  23. */
  24. - (void)responseErrorForError:(nonnull MBMResponseError *)error;
  25. /**
  26. * Implement this method to be notified when the limit on the number of Mapbox
  27. * tiles stored for offline regions has been reached.
  28. */
  29. - (void)mapboxTileCountLimitExceededForLimit:(uint64_t)limit;
  30. @end