Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

SDLGetFileResponse Class Reference

Section Contents

Overview

Undocumented

-initWithOffset:length:fileType:crc:

Convenience init for all parameters.

Objective-C

- (nonnull instancetype)initWithOffset:(UInt32)offset
                                length:(UInt32)length
                              fileType:(nullable SDLFileType)fileType
                                   crc:(UInt32)crc;

Swift

init(offset: UInt32, length: UInt32, fileType: SDLFileType?, crc: UInt32)

Parameters

offset

Optional offset in bytes for resuming partial data chunks

length

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

fileType

File type that is being sent in response

crc

Additional CRC32 checksum to protect data integrity up to 512 Mbits

Return Value

A SDLGetFileResponse object

offset

Optional offset in bytes for resuming partial data chunks.

Integer, Optional, minvalue=0 maxvalue=2000000000

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLUInt> *offset;

Swift

var offset: (NSNumber & SDLUInt)? { get set }

length

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

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLUInt> *length;

Swift

var length: (NSNumber & SDLUInt)? { get set }

fileType

File type that is being sent in response.

SDLFileType, Optional

Objective-C

@property (readwrite, strong, nonatomic, nullable) SDLFileType fileType;

Swift

var fileType: SDLFileType? { get set }

crc

Additional CRC32 checksum to protect data integrity up to 512 Mbits.

Integer, Optional, minvalue=0 maxvalue=4294967295

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLUInt> *crc;

Swift

var crc: (NSNumber & SDLUInt)? { get set }
View on GitHub.com
Previous Section Next Section