Example #1
0
 internal MagnetometerRotationVectorSensorDataUpdatedEventArgs(float[] values, SensorDataAccuracy accuracy)
 {
     X        = values[0];
     Y        = values[1];
     Z        = values[2];
     W        = values[3];
     Accuracy = accuracy;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the HeartRateMonitorLEDGreenBatchData class.
 /// </summary>
 /// <since_tizen> 8 </since_tizen>
 /// <param name="timestamp">Timestamp of sensor event.</param>
 /// <param name="accuracy">Sensor accuracy of sensor event.</param>
 /// <param name="green">Green LED ADC value of sensor event</param>
 /// <param name="accelerationX">X axis's value of gravitational acceleration of sensor event.</param>
 /// <param name="accelerationY">Y axis's value of gravitational acceleration of sensor event.</param>
 /// <param name="accelerationZ">Z axis's value of gravitational acceleration of sensor event.</param>
 /// <param name="index">Sequential index of sensor event.</param>
 public HeartRateMonitorLEDGreenBatchData(ulong timestamp, SensorDataAccuracy accuracy, uint green, int accelerationX, int accelerationY, int accelerationZ, uint index) : base(timestamp, accuracy)
 {
     Green         = green;
     AccelerationX = accelerationX;
     AccelerationY = accelerationY;
     AccelerationY = accelerationZ;
     Index         = index;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the HeartRateMonitorBatchData class.
 /// </summary>
 /// <since_tizen> 8 </since_tizen>
 /// <param name="timestamp">Timestamp of HeartRateMonitorBatch sensor event.</param>
 /// <param name="accuracy">Sensor accuracy of HeartRateMonitorBatch sensor event.</param>
 /// <param name="state">Value indicating the status of the HeartRateMonitorBatch sensor.</param>
 /// <param name="heartRate">heartRate of HeartRateMonitorBatch sensor event.</param>
 /// <param name="rri">rri of HeartRateMonitorBatch sensor event.</param>
 public HeartRateMonitorBatchData(ulong timestamp, SensorDataAccuracy accuracy, HeartRateMonitorBatchState state, int heartRate, int rri) : base(timestamp, accuracy)
 {
     State      = state;
     HeartRate  = heartRate;
     RRInterval = rri;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the BatchData class.
 /// </summary>
 /// <since_tizen> 8 </since_tizen>
 /// <param name="timestamp">Timestamp of sensor event.</param>
 /// <param name="accuracy">Sensor accuracy of sensor event.</param>
 public BatchData(ulong timestamp, SensorDataAccuracy accuracy)
 {
     Timestamp = timestamp;
     Accuracy  = accuracy;
 }
 internal AutoRotationSensorDataUpdatedEventArgs(float[] values, SensorDataAccuracy accuracy)
 {
     Rotation = (AutoRotationState)values[0];
     Accuracy = accuracy;
 }
 internal SensorAccuracyChangedEventArgs(ulong timestamp, SensorDataAccuracy accuracy)
 {
     Timestamp = timestamp;
     Accuracy  = accuracy;
 }
 internal SensorAccuracyChangedEventArgs(TimeSpan timespan, SensorDataAccuracy accuracy)
 {
     Accuracy  = accuracy;
     Timestamp = (ulong)timespan.Ticks;
 }
Example #8
0
 internal SensorAccuracyChangedEventArgs(TimeSpan timespan, SensorDataAccuracy accuracy)
 {
     TimeSpan = timespan;
     Accuracy = accuracy;
 }