Class BatchSensor<TData>

Definition

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

Abstract sensor for series of sensor data

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

Constructors

View Source

BatchSensor(uint)

Create BatchSensor

Declaration
C#
Copy
public BatchSensor(uint index = 0)
Parameters
Type Name Description
uint index

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<T><TData>

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<T><TData>

List of converted specific batch data

View Source

UpdateBatchData(IntPtr, uint)

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

uint eventsCount

Number of general batch events

Implements

System.IDisposable