Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
iOS Documentation
SDLVehicleDataResult

SDLVehicleDataResult Class Reference

Section Contents

Overview

Individual published data request result

-initWithDataType:resultCode:

Convenience init for creating a SDLVehicleDataResult with a dataType

Objective-C

- (nonnull instancetype)initWithDataType:(nonnull SDLVehicleDataType)dataType
                              resultCode:
                                  (nonnull SDLVehicleDataResultCode)resultCode;

Swift

init(dataType: SDLVehicleDataType, resultCode: SDLVehicleDataResultCode)

Parameters

dataType

The Vehicle DataType data

resultCode

The VehicleData ResultCode data

-initWithCustomOEMDataType:resultCode:

Convenience init for creating a SDLVehicleDataResult with a customDataType

Objective-C

- (nonnull instancetype)
    initWithCustomOEMDataType:(nonnull NSString *)customDataType
                   resultCode:(nonnull SDLVehicleDataResultCode)resultCode;

Swift

init(customOEMDataType customDataType: String, resultCode: SDLVehicleDataResultCode)

Parameters

customDataType

The custom dataType data

resultCode

The VehicleData ResultCode data

dataType

Defined published data element type

Objective-C

@property (nonatomic, strong) SDLVehicleDataType _Nonnull dataType;

Swift

var dataType: SDLVehicleDataType { get set }

customOEMDataType

OEM custom defined published data element type

Added SmartDeviceLink 6.0

Objective-C

@property (nonatomic, strong, nullable) NSString *customOEMDataType;

Swift

var customOEMDataType: String? { get set }

resultCode

Published data result code

Objective-C

@property (nonatomic, strong) SDLVehicleDataResultCode _Nonnull resultCode;

Swift

var resultCode: SDLVehicleDataResultCode { get set }
View on GitHub.com
Previous Section Next Section