MBMStylePackLoadProgress.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. /**
  4. * A `style pack load` progress includes information about
  5. * the number of resources that have completed downloading
  6. * and the total number of resources that are required.
  7. */
  8. NS_SWIFT_NAME(StylePackLoadProgress)
  9. __attribute__((visibility ("default")))
  10. @interface MBMStylePackLoadProgress : 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. /** The cumulative size, in bytes, of all resources that are ready for offline access. */
  24. @property (nonatomic, readonly) uint64_t completedResourceSize;
  25. /** The number of resources that have failed to download due to an error. */
  26. @property (nonatomic, readonly) uint64_t erroredResourceCount;
  27. /** The number of resources that are known to be required for this style package. */
  28. @property (nonatomic, readonly) uint64_t requiredResourceCount;
  29. /** The number of resources that have been fully downloaded from the network. */
  30. @property (nonatomic, readonly) uint64_t loadedResourceCount;
  31. /**
  32. * The cumulative size, in bytes, of all resources that have been fully downloaded
  33. * from the network.
  34. */
  35. @property (nonatomic, readonly) uint64_t loadedResourceSize;
  36. @end