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

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 (readwrite, strong, nonatomic) SDLVehicleDataType _Nonnull dataType;

Swift

var dataType: SDLVehicleDataType { get set }

customOEMDataType

OEM custom defined published data element type

Added SmartDeviceLink 6.0

Objective-C

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

Swift

var customOEMDataType: String? { get set }

resultCode

Published data result code

Objective-C

@property (readwrite, strong, nonatomic)
    SDLVehicleDataResultCode _Nonnull resultCode;

Swift

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