Used to push a binary data onto the SDL module from a mobile device, such as icons and album art.
Since SmartDeviceLink 2.0
See
SDLDeleteFile, SDLListFilesInit
- (nonnull instancetype)init;
init()
A SDLPutFile object
Convenience init for creating a putfile with a name and file format.
- (nonnull instancetype)initWithFileName:(nonnull NSString *)fileName
fileType:(nonnull SDLFileType)fileType;
init(fileName: String, fileType: SDLFileType)
The file’s name
The file’s format
A SDLPutFile object
Convenience init for creating a putfile with a name, file format, and persistence.
- (nonnull instancetype)initWithFileName:(nonnull NSString *)fileName
fileType:(nonnull SDLFileType)fileType
persistentFile:(BOOL)persistentFile;
init(fileName: String, fileType: SDLFileType, persistentFile: Bool)
The file’s name
The file’s format
Whether or not the image should persist between ignition cycles
A SDLPutFile object
Convenience init for creating a putfile that is part of a multiple frame payload.
- (nonnull instancetype)initWithFileName:(nonnull NSString *)fileName
fileType:(nonnull SDLFileType)fileType
persistentFile:(BOOL)persistentFile
systemFile:(BOOL)systemFile
offset:(UInt32)offset
length:(UInt32)length
crc:(UInt64)crc;
init(fileName: String, fileType: SDLFileType, persistentFile: Bool, systemFile: Bool, offset: UInt32, length: UInt32, crc: UInt64)
The file’s name
The file’s format
Whether or not the image should persist between ignition cycles
Whether or not the file is meant to be passed through Core to elsewhere on the system
Offset in bytes for resuming partial data chunks
Length in bytes for resuming partial data chunks
Checksum of the bulk data. Used by Core to check data integrity
A SDLPutFile object
Convenience init for creating a putfile that is part of a multiple frame payload. A CRC checksum is calculated for the bulk data.
- (nonnull instancetype)initWithFileName:(nonnull NSString *)fileName
fileType:(nonnull SDLFileType)fileType
persistentFile:(BOOL)persistentFile
systemFile:(BOOL)systemFile
offset:(UInt32)offset
length:(UInt32)length
bulkData:(nonnull NSData *)bulkData;
init(fileName: String, fileType: SDLFileType, persistentFile: Bool, systemFile: Bool, offset: UInt32, length: UInt32, bulkData: Data)
The file’s name
The file’s format
Whether or not the image should persist between ignition cycles
Whether or not the file is meant to be passed through Core to elsewhere on the system
Offset in bytes for resuming partial data chunks
Length in bytes for resuming partial data chunks
Data being sent in the putfile
A SDLPutFile object
File reference name
Required, max length 255 characters
@property (nonatomic, strong) NSString *_Nonnull sdlFileName;
var sdlFileName: String { get set }
A FileType value representing a selected file type
Required
@property (nonatomic, strong) SDLFileType _Nonnull fileType;
var fileType: SDLFileType { get set }
A value to indicates if the file is meant to persist between sessions / ignition cycles. If set to TRUE, then the system will aim to persist this file through session / cycles. While files with this designation will have priority over others, they are subject to deletion by the system at any time. In the event of automatic deletion by the system, the app will receive a rejection and have to resend the file. If omitted, the value will be set to false.
Boolean, Optional, default = NO
@property (nonatomic, strong, nullable) NSNumber<SDLBool> *persistentFile;
var persistentFile: (NSNumber & SDLBool)? { get set }
Indicates if the file is meant to be passed through core to elsewhere on the system. If set to TRUE, then the system will instead pass the data thru as it arrives to a predetermined area outside of core.
Boolean, Optional, default = NO
@property (nonatomic, strong, nullable) NSNumber<SDLBool> *systemFile;
var systemFile: (NSNumber & SDLBool)? { get set }
Offset in bytes for resuming partial data chunks.
Integer, Optional, 0 - 100,000,000,000
@property (nonatomic, strong, nullable) NSNumber<SDLUInt> *offset;
var offset: (NSNumber & SDLUInt)? { get set }
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, 0 - 100,000,000,000
@property (nonatomic, strong, nullable) NSNumber<SDLUInt> *length;
var length: (NSNumber & SDLUInt)? { get set }
Additional CRC32 checksum to protect data integrity up to 512 Mbits.
Integer, Optional, 0 - 4,294,967,295
@property (nonatomic, strong, nullable) NSNumber<SDLUInt> *crc;
var crc: (NSNumber & SDLUInt)? { get set }