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

SDLSeatControlData Class Reference

Section Contents

Overview

Seat control data corresponds to SEAT ModuleType.

-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.

Required

Objective-C

@property (readwrite, strong, nonatomic) SDLSupportedSeat _Nonnull id;

Swift

var id: SDLSupportedSeat { get set }

heatingEnabled

@abstract Whether or not heating is enabled.

Optional

Objective-C

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

Swift

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

coolingEnabled

@abstract Whether or not cooling is enabled.

Optional

Objective-C

@property (readwrite, strong, nonatomic, 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 (readwrite, strong, nonatomic, 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 (readwrite, strong, nonatomic, 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 (readwrite, strong, nonatomic, 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 (readwrite, strong, nonatomic, 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 (readwrite, strong, nonatomic, 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 (readwrite, strong, nonatomic, 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 (readwrite, strong, nonatomic, 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 (readwrite, strong, nonatomic, 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 (readwrite, strong, nonatomic, nullable)
    NSNumber<SDLInt> *headSupportVerticalPosition;

Swift

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

massageEnabled

@abstract Whether or not massage is enabled.

Optional

Objective-C

@property (readwrite, strong, nonatomic, 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 (readwrite, strong, nonatomic, 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 (readwrite, strong, nonatomic, nullable)
    NSArray<SDLMassageCushionFirmness *> *massageCushionFirmness;

Swift

var massageCushionFirmness: [SDLMassageCushionFirmness]? { get set }

memory

@abstract type of action to be performed

Required, - see: SDLSeatMemoryAction

Objective-C

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

Swift

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