System.Sensors.TSensorState

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TSensorState = (Added, Removed, Initializing, Ready, NoData, AccessDenied, Error);

C++

enum class DECLSPEC_DENUM TSensorState : unsigned char { Added, Removed, Initializing, Ready, NoData, AccessDenied, Error };

Properties

Type Visibility Source Unit Parent
enum public
System.Sensors.pas
System.Sensors.hpp
System.Sensors System.Sensors

Description

Type to specify a state of a system sensor.

Instances of this type may have any of the following values:

Item Description

Added

The sensor is available.

Removed

The sensor is not available.

Initializing

The sensor is available, but it is not yet ready to provide data.

Ready

The sensor is available and it can provide data.

NoData

The sensor is available, but it is unable to provide data.

Unlike Initializing, this state does not ensure that the sensor will ever be ready to provide data.

AccessDenied

Your application has not been granted access to the sensor.

Error

A major error prevents the sensor from providing data at the moment.

Whether this error is or is not recoverable is unknown.

See Also