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 }