MBXTileRegionLoadProgress.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. /**
  4. * A tile region's load progress includes counts
  5. * of the number of resources that have completed downloading
  6. * and the total number of resources that are required.
  7. */
  8. NS_SWIFT_NAME(TileRegionLoadProgress)
  9. __attribute__((visibility ("default")))
  10. @interface MBXTileRegionLoadProgress : NSObject
  11. // This class provides custom init which should be called
  12. - (nonnull instancetype)init NS_UNAVAILABLE;
  13. // This class provides custom init which should be called
  14. + (nonnull instancetype)new NS_UNAVAILABLE;
  15. - (nonnull instancetype)initWithCompletedResourceCount:(uint64_t)completedResourceCount
  16. completedResourceSize:(uint64_t)completedResourceSize
  17. erroredResourceCount:(uint64_t)erroredResourceCount
  18. requiredResourceCount:(uint64_t)requiredResourceCount
  19. loadedResourceCount:(uint64_t)loadedResourceCount
  20. loadedResourceSize:(uint64_t)loadedResourceSize;
  21. /** The number of resources that are ready for offline access. */
  22. @property (nonatomic, readonly) uint64_t completedResourceCount;
  23. /**
  24. * The cumulative size, in bytes, of all resources (inclusive of tiles) that
  25. * are ready for offline access.
  26. */
  27. @property (nonatomic, readonly) uint64_t completedResourceSize;
  28. /** The number of resources that have failed to download due to an error. */
  29. @property (nonatomic, readonly) uint64_t erroredResourceCount;
  30. /** The number of resources that are known to be required for this tile region. */
  31. @property (nonatomic, readonly) uint64_t requiredResourceCount;
  32. /**
  33. * The number of resources that are ready for offline use and that (at least partially)
  34. * have been downloaded from the network.
  35. */
  36. @property (nonatomic, readonly) uint64_t loadedResourceCount;
  37. /**
  38. * The cumulative size, in bytes, of all resources (inclusive of tiles) that have
  39. * been downloaded from the network.
  40. */
  41. @property (nonatomic, readonly) uint64_t loadedResourceSize;
  42. @end