Class TemperatureSensor

    Definition

    Namespace:
    Tizen.Sensor
    Assembly:
    Tizen.Sensor.dll

    The TemperatureSensor class is used for registering callbacks for the temperature sensor and getting the temperature data.

    public sealed class TemperatureSensor : Sensor
    Inheritance
    object
    Sensor
    TemperatureSensor

    Constructors

    View Source

    TemperatureSensor(uint)

    Initializes a new instance of the TemperatureSensor class.

    Declaration
    public TemperatureSensor(uint index = null)
    Parameters
    Type Name Description
    uint index

    Index. Default value for this is 0. Index refers to a particular temperature sensor in case of multiple sensors.

    Properties

    View Source

    Count

    Returns the number of temperature sensors available on the device.

    Declaration
    public static int Count { get; }
    Property Value
    Type Description
    int

    The count of temperature sensors.

    View Source

    IsSupported

    Returns true or false based on whether the temperature sensor is supported by the device.

    Declaration
    public static bool IsSupported { get; }
    Property Value
    Type Description
    bool

    true if supported; otherwise false.

    View Source

    Temperature

    Gets the value of the temperature sensor.

    Declaration
    public float Temperature { get; }
    Property Value
    Type Description
    float

    Temperature (Celsius)

    Events

    View Source

    DataUpdated

    An event handler for storing the callback functions for the event corresponding to the change in the temperature sensor data.

    Declaration
    public event EventHandler<TemperatureSensorDataUpdatedEventArgs> DataUpdated
    Event Type
    Type Description
    EventHandler<><TemperatureSensorDataUpdatedEventArgs>

    Extension Methods

    EXamlExtensions.LoadFromEXaml<T>(T, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    EXamlExtensions.LoadFromEXamlPath<TXaml>(TXaml, string)
    EXamlExtensions.LoadFromEXamlPath<T>(T, Type)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX