This request is sent to the module to retrieve a file.
Convenience init for required parameters.
- (nonnull instancetype)initWithFileName:(nonnull NSString *)fileName;
init(fileName: String)
File name that should be retrieved.
A SDLGetFile object
Convenience init for sending a small file.
- (nonnull instancetype)initWithFileName:(nonnull NSString *)fileName
appServiceId:(nullable NSString *)appServiceId
fileType:(nullable SDLFileType)fileType;
init(fileName: String, appServiceId: String?, fileType: SDLFileType?)
File name that should be retrieved.
ID of the service that should have uploaded the requested file
Selected file type
A SDLGetFile object
Convenience init for sending a large file in multiple data chunks.
- (nonnull instancetype)initWithFileName:(nonnull NSString *)fileName
appServiceId:(nullable NSString *)appServiceId
fileType:(nullable SDLFileType)fileType
offset:(UInt32)offset
length:(UInt32)length;
init(fileName: String, appServiceId: String?, fileType: SDLFileType?, offset: UInt32, length: UInt32)
File name that should be retrieved.
ID of the service that should have uploaded the requested file
Selected file type
Offset in bytes for resuming partial data chunks
Length in bytes for resuming partial data chunks
A SDLGetFile object
File name that should be retrieved.
String, Required, Max string length 255 chars
@property (nonatomic, strong) NSString *_Nonnull fileName;
var fileName: String { get set }
ID of the service that should have uploaded the requested file.
String, Optional
@property (nonatomic, strong, nullable) NSString *appServiceId;
var appServiceId: String? { get set }
Selected file type.
SDLFileType, Optional
@property (nonatomic, strong, nullable) SDLFileType fileType;
var fileType: SDLFileType? { get set }
Optional offset in bytes for resuming partial data chunks.
Integer, Optional, minvalue=“0” maxvalue=“2000000000”
@property (nonatomic, strong, nullable) NSNumber<SDLUInt> *offset;
var offset: (NSNumber & SDLUInt)? { get set }
Optional length in bytes for resuming partial data chunks. If offset is set to 0, then length is the total length of the file to be downloaded.
Integer, Optional, minvalue=“0” maxvalue=“2000000000”
@property (nonatomic, strong, nullable) NSNumber<SDLUInt> *length;
var length: (NSNumber & SDLUInt)? { get set }