MBXResourceLoadResult_Internal.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxCommon/MBXResourceLoadStatus_Internal.h>
  4. @class MBXResourceData;
  5. NS_SWIFT_NAME(ResourceLoadResult)
  6. __attribute__((visibility ("default")))
  7. @interface MBXResourceLoadResult : NSObject
  8. // This class provides custom init which should be called
  9. - (nonnull instancetype)init NS_UNAVAILABLE;
  10. // This class provides custom init which should be called
  11. + (nonnull instancetype)new NS_UNAVAILABLE;
  12. - (nonnull instancetype)initWithData:(nullable MBXResourceData *)data
  13. status:(MBXResourceLoadStatus)status
  14. immutable:(BOOL)immutable
  15. mustRevalidate:(BOOL)mustRevalidate
  16. expires:(nonnull NSDate *)expires
  17. totalBytes:(uint64_t)totalBytes
  18. transferredBytes:(uint64_t)transferredBytes
  19. contentType:(nonnull NSString *)contentType;
  20. @property (nonatomic, readonly, nullable) MBXResourceData *data;
  21. @property (nonatomic, readonly) MBXResourceLoadStatus status;
  22. @property (nonatomic, readonly, getter=isImmutable) BOOL immutable;
  23. @property (nonatomic, readonly, getter=isMustRevalidate) BOOL mustRevalidate;
  24. /** The expiration time of the file, if one exists. */
  25. @property (nonatomic, readonly, nonnull) NSDate *expires;
  26. @property (nonatomic, readonly) uint64_t totalBytes;
  27. @property (nonatomic, readonly) uint64_t transferredBytes;
  28. @property (nonatomic, readonly, nonnull, copy) NSString *contentType;
  29. @end