Class BatchSensor<TData>

Definition

Namespace:
Tizen.Sensor
Assembly:
Tizen.Sensor.dll
API Level:
8

Abstract sensor for series of sensor data

C#
Copy
public abstract class BatchSensor<TData> : Sensor, IDisposable where TData : BatchData
Inheritance
System.Object
BatchSensor<TData>
Derived
Implements
System.IDisposable

Constructors

View Source

BatchSensor(UInt32)

Create BatchSensor

Declaration
C#
Copy
public BatchSensor(uint index = 0U)
Parameters
Type Name Description
System.UInt32 index
API Level: 8

Properties

View Source

Data

Get general batch data

Declaration
C#
Copy
public IReadOnlyList<TData> Data { get; protected set; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyList<TData>
API Level: 8

Methods

View Source

ConvertBatchData()

Convert general batch data to specific batch data

Declaration
C#
Copy
protected abstract IReadOnlyList<TData> ConvertBatchData()
Returns
Type Description
System.Collections.Generic.IReadOnlyList<TData>

List of converted specific batch data

API Level: 8
View Source

UpdateBatchData(IntPtr, UInt32)

Update the internal batch data using the latest events

Declaration
C#
Copy
protected void UpdateBatchData(IntPtr eventsPtr, uint eventsCount)
Parameters
Type Name Description
System.IntPtr eventsPtr

General batch data's raw pointer

System.UInt32 eventsCount

Number of general batch events

Implements

System.IDisposable