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

SDLOnSystemRequest Class Reference

Section Contents

Overview

An asynchronous request from the system for specific data from the device or the cloud or response to a request from the device or cloud Binary data can be included in hybrid part of message for some requests (such as Authentication request responses)

requestType

The type of system request.

Objective-C

@property (readwrite, strong, nonatomic) SDLRequestType _Nonnull requestType;

Swift

var requestType: SDLRequestType { get set }

requestSubType

A request subType used when the requestType is OEM_SPECIFIC.

Optional, Max length 255

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSString *requestSubType;

Swift

var requestSubType: String? { get set }

url

Optional URL for HTTP requests. If blank, the binary data shall be forwarded to the app. If not blank, the binary data shall be forwarded to the url with a provided timeout in seconds.

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSString *url;

Swift

var url: String? { get set }

timeout

Optional timeout for HTTP requests Required if a URL is provided

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLInt> *timeout;

Swift

var timeout: (NSNumber & SDLInt)? { get set }

fileType

Optional file type (meant for HTTP file requests).

Objective-C

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

Swift

var fileType: SDLFileType? { get set }

offset

Optional offset in bytes for resuming partial data chunks

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

Objective-C

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

Swift

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