SDLRoofStatus Class Reference

Section Contents

Overview

Describes the status of a parameter of roof/convertible roof/sunroof/moonroof etc. If roof is open (AJAR), state will determine percentage of roof open.

@added in SmartDeviceLink 7.1.0

-initWithLocation:status:

Objective-C

- (nonnull instancetype)initWithLocation:(nonnull SDLGrid *)location
                                  status:(nonnull SDLDoorStatusType)status;

Swift

init(location: SDLGrid, status: SDLDoorStatusType)

Parameters

location

- location

status

- status

Return Value

A SDLRoofStatus object

-initWithLocation:status:state:

Objective-C

- (nonnull instancetype)initWithLocation:(nonnull SDLGrid *)location
                                  status:(nonnull SDLDoorStatusType)status
                                   state:(nullable SDLWindowState *)state;

Swift

init(location: SDLGrid, status: SDLDoorStatusType, state: SDLWindowState?)

Parameters

location

- location

status

- status

state

- state

Return Value

A SDLRoofStatus object

location

The location of the roof on the vehicle grid

Objective-C

@property (nonatomic, strong) SDLGrid *_Nonnull location;

Swift

var location: SDLGrid { get set }

status

The status of the roof (e.g. if it is detachable)

Objective-C

@property (nonatomic, strong) SDLDoorStatusType _Nonnull status;

Swift

var status: SDLDoorStatusType { get set }

state

The state of the roof if it has a window

Objective-C

@property (nonatomic, strong, nullable) SDLWindowState *state;

Swift

var state: SDLWindowState? { get set }