Home > @magiclane/maps-sdk > Temperature

Temperature class

Temperature sensor data.

Provides temperature readings, either ambient or internal device temperature, along with a severity level indicator.

Sensor Data Source

Signature:

export declare class Temperature extends GemAutoreleaseObject implements SenseData 

Extends: GemAutoreleaseObject

Implements: SenseData

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Temperature class.

Properties

Property

Modifiers

Type

Description

acquisitionTime

readonly

Date

Acquisition time

level

readonly

TemperatureLevel

The severity level of the current temperature.

temperature

readonly

number

The temperature value in Celsius.

type

readonly

DataType

Get data type

Methods

Method

Modifiers

Description

toJson()

Serialize to JSON