/// </summary>
public abstract class ActivityDetector : Sensor
{
- protected const int ActivityAttribute = (((int)SensorType.InVehicleActivityDetector << 8) | 0x80 | 0x1);
+ /// <summary>
+ /// Attribute key for a activity detector.
+ /// </summary>
+ protected const int ActivityAttribute = (((int)SensorType.StationaryActivityDetector << 8) | 0x80 | 0x1);
+ /// <summary>
+ /// Activity types.
+ /// </summary>
protected enum ActivityType
{
+ /// <summary>
+ /// Unknown.
+ /// </summary>
Unknown = 1,
+ /// <summary>
+ /// Stationary.
+ /// </summary>
Stationary = 2,
+ /// <summary>
+ /// Walking.
+ /// </summary>
Walking = 4,
+ /// <summary>
+ /// Running.
+ /// </summary>
Running = 8,
+ /// <summary>
+ /// In vehicle.
+ /// </summary>
InVehicle = 16,
+ /// <summary>
+ /// On bicycle.
+ /// </summary>
OnBicycle = 32,
};
/// <feature>http://tizen.org/feature/sensor.proximity</feature>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used.</exception>
/// <exception cref="NotSupportedException">Thrown when the sensor is not supported.</exception>
- /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state.exception>
+ /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state.</exception>
/// <param name='index'>
/// Index. Default value for this is 0. Index refers to a particular proximity sensor in case of multiple sensors.
/// </param>
}
}
+ /// <summary>
+ /// Destroy the Sensor object.
+ /// </summary>
~Sensor()
{
Dispose(false);
}
}
+ /// <summary>
+ /// Destroy the current object.
+ /// </summary>
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
+ /// <summary>
+ /// Releases all resources currently used by this instance.
+ /// </summary>
+ /// <param name="disposing">
+ /// true if managed resources should be disposed
+ /// otherwise, false.
+ /// </param>
protected virtual void Dispose(bool disposing)
{
if (_disposed)
/// </summary>
SleepMonitor = 0x301,
/// <summary>
+ /// Stationary activity detector.
+ /// </summary>
+ StationaryActivityDetector = 0x1A00,
+ /// <summary>
/// Walking activity detector.
/// </summary>
WalkingActivityDetector = 0x1A00,
/// </summary>
RunningActivityDetector = 0x1A00,
/// <summary>
- /// Stationary activity detector.
- /// </summary>
- StationaryActivityDetector = 0x1A00,
- /// <summary>
/// InVehicle activity detector.
/// </summary>
InVehicleActivityDetector = 0x1A00,