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
SDLWindowState

SDLWindowState Class Reference

Section Contents

Overview

@since SDL 7.0.0

-initWithApproximatePosition:deviation:

Objective-C

- (nonnull instancetype)initWithApproximatePosition:(UInt8)approximatePosition
                                          deviation:(UInt8)deviation;

Swift

init(approximatePosition: UInt8, deviation: UInt8)

Parameters

approximatePosition

- The approximate percentage that the window is open - 0 being fully closed, 100 being fully open

deviation

- The percentage deviation of the approximatePosition. e.g. If the approximatePosition is 50 and the deviation is 10, then the window’s location is somewhere between 40 and 60.

Return Value

A SDLWindowState object

approximatePosition

The approximate percentage that the window is open - 0 being fully closed, 100 being fully open

Mandatory, Integer, 0 - 100

Objective-C

@property (nonatomic, strong) NSNumber<SDLUInt> *_Nonnull approximatePosition;

Swift

var approximatePosition: NSNumber & SDLUInt { get set }

deviation

The percentage deviation of the approximatePosition. e.g. If the approximatePosition is 50 and the deviation is 10, then the window’s location is somewhere between 40 and 60.

Mandatory, Integer, 0 - 100

Objective-C

@property (nonatomic, strong) NSNumber<SDLUInt> *_Nonnull deviation;

Swift

var deviation: NSNumber & SDLUInt { get set }
View on GitHub.com
Previous Section Next Section