MBXDownloadOptions.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBXHttpRequest;
  4. /** Structure to configure download session. */
  5. NS_SWIFT_NAME(DownloadOptions)
  6. __attribute__((visibility ("default")))
  7. @interface MBXDownloadOptions : 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)initWithRequest:(nonnull MBXHttpRequest *)request
  13. localPath:(nonnull NSString *)localPath;
  14. - (nonnull instancetype)initWithRequest:(nonnull MBXHttpRequest *)request
  15. localPath:(nonnull NSString *)localPath
  16. resume:(BOOL)resume;
  17. /**
  18. * Structure which contains parameters to use for sending HTTP request.
  19. * Http method will be ignored from this request.
  20. */
  21. @property (nonatomic, readwrite, nonnull) MBXHttpRequest *request;
  22. /**
  23. * Absolute path where to store downloaded file. If a file with the specified name already exists and resume is set to
  24. * false, the existing file is overwritten.
  25. */
  26. @property (nonatomic, readonly, nonnull, copy) NSString *localPath;
  27. /** If localPath points to an existing file on disk, resume the download starting from an offset equal to file size. */
  28. @property (nonatomic, readwrite, getter=isResume) BOOL resume;
  29. @end