An asynchronous request from the device; binary data can be included in hybrid part of message for some requests (such as HTTP, Proprietary, or Authentication requests)
@since SmartDeviceLink 3.0
Create a generic system request with a file name
- (nonnull instancetype)initWithType:(nonnull SDLRequestType)requestType
fileName:(nullable NSString *)fileName;
init(type requestType: SDLRequestType, fileName: String?)
The request type to use
The name of the file to use
The request
Create an OEM_PROPRIETARY system request with a subtype and file name
- (nonnull instancetype)initWithProprietaryType:
(nonnull NSString *)proprietaryType
fileName:(nullable NSString *)fileName;
init(proprietaryType: String, fileName: String?)
The proprietary requestSubType to be used
The name of the file to use
The request
The type of system request. Note that Proprietary requests should forward the binary data to the known proprietary module on the system.
Required
@property (nonatomic, strong) SDLRequestType _Nonnull requestType;
var requestType: SDLRequestType { get set }
A request subType used when the requestType
is OEM_SPECIFIC
.
Optional, Max length 255
@property (nonatomic, strong, nullable) NSString *requestSubType;
var requestSubType: String? { get set }
Filename of HTTP data to store in predefined system staging area.
Required if requestType is HTTP. PROPRIETARY requestType should ignore this parameter.
@property (nonatomic, strong, nullable) NSString *fileName;
var fileName: String? { get set }