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

SDLTemperature Class Reference

Section Contents

Overview

Struct representing a temperature.

-initWithFahrenheitValue:

Convenience init for a fahrenheit temperature value.

Objective-C

- (nonnull instancetype)initWithFahrenheitValue:(float)value;

Swift

convenience init(fahrenheitValue value: Float)

Parameters

value

Temperature value in fahrenheit

Return Value

A SDLTemperature object

-initWithCelsiusValue:

Convenience init for a celsius temperature value.

Objective-C

- (nonnull instancetype)initWithCelsiusValue:(float)value;

Swift

convenience init(celsiusValue value: Float)

Parameters

value

Temperature value in celsius

Return Value

A SDLTemperature object

-initWithUnit:value:

Convenience init for all parameters.

Objective-C

- (nonnull instancetype)initWithUnit:(nonnull SDLTemperatureUnit)unit
                               value:(float)value;

Swift

init(unit: SDLTemperatureUnit, value: Float)

Parameters

unit

Temperature unit

value

Temperature value in specified unit

Return Value

A SDLTemperature object

unit

Temperature unit

Required, float

Objective-C

@property (readwrite, strong, nonatomic) SDLTemperatureUnit _Nonnull unit;

Swift

var unit: SDLTemperatureUnit { get set }

value

Temperature value in specified unit. Range depends on OEM and is not checked by SDL.

Required, float

Objective-C

@property (readwrite, strong, nonatomic) NSNumber<SDLFloat> *_Nonnull value;

Swift

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