Class Sensor
Definition
- Namespace:
- Tizen.Sensor
- Assembly:
- Tizen.Sensor.dll
- API Level:
- 3
The Sensor class is used for storing the hardware information about a particular sensor.
C#Copypublic abstract class Sensor : IDisposable
- Inheritance
-
Sensor
- Derived
Properties
Declaration
C#Copypublic int FifoCount { get; }
Property Value
Type | Description |
---|---|
Int32 | The size of the hardware FIFO. |
API Level: 3
Interval
Sets the interval of the sensor for the sensor data event. Callbacks will be called at the frequency of this interval.
Declaration
C#Copypublic uint Interval { get; set; }
Property Value
Type | Description |
---|---|
UInt32 | The interval of the sensor. |
API Level: 3
Declaration
C#Copypublic bool IsSensing { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
API Level: 3
Declaration
C#Copypublic int MaxBatchCount { get; }
Property Value
Type | Description |
---|---|
Int32 | The maximum batch count. |
API Level: 3
MaxBatchLatency
Sets the maximum batch latency for the sensor corresponding to the sensor data event.
Declaration
C#Copypublic uint MaxBatchLatency { get; set; }
Property Value
Type | Description |
---|---|
UInt32 | The maximum batch latency. |
API Level: 3
Declaration
C#Copypublic float MaxValue { get; }
Property Value
Type | Description |
---|---|
Single | The upper bound of the range of the sensor reading. |
API Level: 3
Declaration
C#Copypublic int MinInterval { get; }
Property Value
Type | Description |
---|---|
Int32 | The minimum update interval. |
API Level: 3
Declaration
C#Copypublic float MinValue { get; }
Property Value
Type | Description |
---|---|
Single | The lower bound of the range of the sensor reading. |
API Level: 3
Declaration
C#Copypublic string Name { get; }
Property Value
Type | Description |
---|---|
String | The name of the sensor. |
API Level: 3
Declaration
C#Copypublic SensorPausePolicy PausePolicy { get; set; }
Property Value
Type | Description |
---|---|
SensorPausePolicy | The pause policy. |
API Level: 3
Declaration
C#Copypublic float Resolution { get; }
Property Value
Type | Description |
---|---|
Single | The resolution. |
API Level: 3
Declaration
C#Copypublic TimeSpan TimeSpan { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan | The time span. |
API Level: 3
Declaration
C#Copypublic ulong Timestamp { get; set; }
Property Value
Type | Description |
---|---|
UInt64 | Timestamp. |
API Level: 8
Declaration
C#Copypublic string Vendor { get; }
Property Value
Type | Description |
---|---|
String | The vendor name of the sensor. |
API Level: 3
Methods
Declaration
C#Copypublic void Dispose()
API Level: 3
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | true if managed resources should be disposed otherwise, false. |
API Level: 3
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic void Start()
API Level: 3
Declaration
C#Copypublic void Stop()