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
-
System.ObjectSensor
- Derived
- Implements
-
System.IDisposable
Properties
Declaration
C#Copypublic int FifoCount { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.UInt32 | The interval of the sensor. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the operation is invalid for the current state. |
API Level: 3
Declaration
C#Copypublic bool IsSensing { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
API Level: 3
Declaration
C#Copypublic int MaxBatchCount { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.UInt32 | The maximum batch latency. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the operation is invalid for the current state. |
API Level: 3
Declaration
C#Copypublic float MaxValue { get; }
Property Value
Type | Description |
---|---|
System.Single | The upper bound of the range of the sensor reading. |
API Level: 3
Declaration
C#Copypublic int MinInterval { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The minimum update interval. |
API Level: 3
Declaration
C#Copypublic float MinValue { get; }
Property Value
Type | Description |
---|---|
System.Single | The lower bound of the range of the sensor reading. |
API Level: 3
Declaration
C#Copypublic string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the sensor. |
API Level: 3
Declaration
C#Copypublic SensorPausePolicy PausePolicy { get; set; }
Property Value
Type | Description |
---|---|
SensorPausePolicy | The pause policy. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the operation is invalid for the current state. |
API Level: 3
Declaration
C#Copypublic float Resolution { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.UInt64 | Timestamp. |
API Level: 8
Declaration
C#Copypublic string Vendor { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|---|
System.Boolean | disposing | true if managed resources should be disposed otherwise, false. |
API Level: 3
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic void Start()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the operation is invalid for the current state. |
API Level: 3
Declaration
C#Copypublic void Stop()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the operation is invalid for the current state. |