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
Documentation
SDLTemperature

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 (nonatomic, strong) 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 (nonatomic, strong) NSNumber<SDLFloat> *_Nonnull value;

Swift

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