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
SDLSeatControlData

SDLSeatControlData Class Reference

Section Contents

Overview

Seat control data corresponds to “SEAT” ModuleType.

-initWithHeatingEnabled:coolingEnabled:heatingLevel:coolingLevel:horizontalPosition:verticalPosition:frontVerticalPosition:backVerticalPosition:backTiltAngle:headSupportHorizontalPosition:headSupportVerticalPosition:massageEnabled:massageMode:massageCushionFirmness:memory:

Convenience init for setting all possible seat control data

Objective-C

- (nonnull instancetype)
           initWithHeatingEnabled:(nullable NSNumber<SDLBool> *)heatingEnabled
                   coolingEnabled:(nullable NSNumber<SDLBool> *)coolingEnabled
                     heatingLevel:(nullable NSNumber<SDLUInt> *)heatingLevel
                     coolingLevel:(nullable NSNumber<SDLUInt> *)coolingLevel
               horizontalPosition:
                   (nullable NSNumber<SDLUInt> *)horizontalPosition
                 verticalPosition:(nullable NSNumber<SDLUInt> *)verticalPosition
            frontVerticalPosition:
                (nullable NSNumber<SDLUInt> *)frontVerticalPosition
             backVerticalPosition:
                 (nullable NSNumber<SDLUInt> *)backVerticalPosition
                    backTiltAngle:(nullable NSNumber<SDLUInt> *)backTiltAngle
    headSupportHorizontalPosition:
        (nullable NSNumber<SDLUInt> *)headSupportHorizontalPosition
      headSupportVerticalPosition:
          (nullable NSNumber<SDLUInt> *)headSupportVerticalPosition
                   massageEnabled:(nullable NSNumber<SDLBool> *)massageEnabled
                      massageMode:
                          (nullable NSArray<SDLMassageModeData *> *)massageMode
           massageCushionFirmness:
               (nullable NSArray<SDLMassageCushionFirmness *> *)
                   massageCushionFirmness
                           memory:(nullable SDLSeatMemoryAction *)memory;

Swift

init(heatingEnabled: (NSNumber & SDLBool)?, coolingEnabled: (NSNumber & SDLBool)?, heatingLevel: (NSNumber & SDLUInt)?, coolingLevel: (NSNumber & SDLUInt)?, horizontalPosition: (NSNumber & SDLUInt)?, verticalPosition: (NSNumber & SDLUInt)?, frontVerticalPosition: (NSNumber & SDLUInt)?, backVerticalPosition: (NSNumber & SDLUInt)?, backTiltAngle: (NSNumber & SDLUInt)?, headSupportHorizontalPosition: (NSNumber & SDLUInt)?, headSupportVerticalPosition: (NSNumber & SDLUInt)?, massageEnabled: (NSNumber & SDLBool)?, massageMode: [SDLMassageModeData]?, massageCushionFirmness: [SDLMassageCushionFirmness]?, memory: SDLSeatMemoryAction?)

Parameters

heatingEnabled

- heatingEnabled

coolingEnabled

- coolingEnabled

heatingLevel

- heatingLevel

coolingLevel

- coolingLevel

horizontalPosition

- horizontalPosition

verticalPosition

- verticalPosition

frontVerticalPosition

- frontVerticalPosition

backVerticalPosition

- backVerticalPosition

backTiltAngle

- backTiltAngle

headSupportHorizontalPosition

- headSupportHorizontalPosition

headSupportVerticalPosition

- headSupportVerticalPosition

massageEnabled

- massageEnabled

massageMode

- massageMode

massageCushionFirmness

- massageCushionFirmness

memory

- memory

Return Value

A SDLSeatControlData object

-initWithId:

Constructs a newly allocated SDLSeatControlData object with cushion and firmness

Objective-C

- (nonnull instancetype)initWithId:(nonnull SDLSupportedSeat)supportedSeat;

Swift

init(id supportedSeat: SDLSupportedSeat)

Parameters

supportedSeat

id of remote controllable seat.

Return Value

An instance of the SDLSeatControlData class

-initWithId:heatingEnabled:coolingEnable:heatingLevel:coolingLevel:horizontalPostion:verticalPostion:frontVerticalPostion:backVerticalPostion:backTiltAngle:headSupportedHorizontalPostion:headSupportedVerticalPostion:massageEnabled:massageMode:massageCussionFirmness:memory:

Constructs a newly allocated SDLSeatControlData object with cushion and firmness

Objective-C

- (nonnull instancetype)initWithId:(nonnull SDLSupportedSeat)supportedSeat
                    heatingEnabled:(BOOL)heatingEnable
                     coolingEnable:(BOOL)coolingEnable
                      heatingLevel:(UInt8)heatingLevel
                      coolingLevel:(UInt8)coolingLevel
                 horizontalPostion:(UInt8)horizontal
                   verticalPostion:(UInt8)vertical
              frontVerticalPostion:(UInt8)frontVertical
               backVerticalPostion:(UInt8)backVertical
                     backTiltAngle:(UInt8)backAngle
    headSupportedHorizontalPostion:(UInt8)headSupportedHorizontal
      headSupportedVerticalPostion:(UInt8)headSupportedVertical
                    massageEnabled:(BOOL)massageEnable
                       massageMode:
                           (nonnull NSArray<SDLMassageModeData *> *)massageMode
            massageCussionFirmness:
                (nonnull NSArray<SDLMassageCushionFirmness *> *)firmness
                            memory:(nonnull SDLSeatMemoryAction *)memoryAction;

Swift

init(id supportedSeat: SDLSupportedSeat, heatingEnabled heatingEnable: Bool, coolingEnable: Bool, heatingLevel: UInt8, coolingLevel: UInt8, horizontalPostion horizontal: UInt8, verticalPostion vertical: UInt8, frontVerticalPostion frontVertical: UInt8, backVerticalPostion backVertical: UInt8, backTiltAngle backAngle: UInt8, headSupportedHorizontalPostion headSupportedHorizontal: UInt8, headSupportedVerticalPostion headSupportedVertical: UInt8, massageEnabled massageEnable: Bool, massageMode: [SDLMassageModeData], massageCussionFirmness firmness: [SDLMassageCushionFirmness], memory memoryAction: SDLSeatMemoryAction)

Parameters

supportedSeat

id of remote controllable seat.

heatingEnable

Whether or not heating is enabled.

coolingEnable

Whether or not cooling is enabled.

heatingLevel

heating level

coolingLevel

cooling Level

horizontal

horizontal Position

vertical

vertical Position

frontVertical

frontVertical Position

backVertical

backVertical Position

backAngle

backAngle Position

headSupportedHorizontal

headSupportedHorizontal Position

headSupportedVertical

headSupportedVertical Position

massageEnable

Whether or not massage is enabled.

massageMode

Array of massage mode data.

firmness

Array of firmness data.

memoryAction

type of action to be performed.

Return Value

An instance of the SDLSeatControlData class

id

@abstract id of seat that is a remote controllable seat.

Warning

This should not be used to identify a seat, this is a deprecated parameter.

Required

Objective-C

@property (nonatomic, strong) __deprecated SDLSupportedSeat id;

Swift

var id: SDLSupportedSeat { get set }

heatingEnabled

@abstract Whether or not heating is enabled.

Optional

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *heatingEnabled;

Swift

var heatingEnabled: (NSNumber & SDLBool)? { get set }

coolingEnabled

@abstract Whether or not cooling is enabled.

Optional

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *coolingEnabled;

Swift

var coolingEnabled: (NSNumber & SDLBool)? { get set }

heatingLevel

@abstract heating level in integer

Optional, MinValue- 0 MaxValue= 100

Objective-C

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

Swift

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

coolingLevel

@abstract cooling level in integer

Optional, MinValue- 0 MaxValue= 100

Objective-C

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

Swift

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

horizontalPosition

@abstract horizontal Position in integer

Optional, MinValue- 0 MaxValue= 100

Objective-C

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

Swift

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

verticalPosition

@abstract heating level in integer

Optional, MinValue- 0 MaxValue= 100

Objective-C

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

Swift

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

frontVerticalPosition

@abstract heating level in integer

Optional, MinValue- 0 MaxValue= 100

Objective-C

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

Swift

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

backVerticalPosition

@abstract heating level in integer

Optional, MinValue- 0 MaxValue= 100

Objective-C

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

Swift

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

backTiltAngle

@abstract heating level in integer

Optional, MinValue- 0 MaxValue= 100

Objective-C

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

Swift

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

headSupportHorizontalPosition

@abstract head Support Horizontal Position in integer

Optional, MinValue- 0 MaxValue= 100

Objective-C

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

Swift

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

headSupportVerticalPosition

@abstract head Support Vertical Position in integer

Optional, MinValue- 0 MaxValue= 100

Objective-C

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

Swift

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

massageEnabled

@abstract Whether or not massage is enabled.

Optional

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *massageEnabled;

Swift

var massageEnabled: (NSNumber & SDLBool)? { get set }

massageMode

@abstract Array of massage mode data.

Optional, Array of SDLMassageModeData objects, MinArray size-1 MaxArray size-2

Objective-C

@property (nonatomic, strong, nullable) NSArray<SDLMassageModeData *> *massageMode;

Swift

var massageMode: [SDLMassageModeData]? { get set }

massageCushionFirmness

@abstract Array of firmness of a cushion.

Optional, Array of SDLMassageCushionFirmness objects, MinArray size-1 MaxArray size-5

Objective-C

@property (nonatomic, strong, nullable) NSArray<SDLMassageCushionFirmness *> *massageCushionFirmness;

Swift

var massageCushionFirmness: [SDLMassageCushionFirmness]? { get set }

memory

@abstract type of action to be performed

Required, - see: SDLSeatMemoryAction

Objective-C

@property (nonatomic, strong, nullable) SDLSeatMemoryAction *memory;

Swift

var memory: SDLSeatMemoryAction? { get set }
View on GitHub.com
Previous Section Next Section