/// <since_tizen> 7 </since_tizen>
public sealed class AutoRotationSensor : Sensor
{
- private static string AccelerometerKey = "http://tizen.org/feature/sensor.accelerometer";
+ private static string AutoRotationSensorKey = "http://tizen.org/feature/screen.auto_rotation";
private event EventHandler<SensorAccuracyChangedEventArgs> _accuracyChanged;
get
{
Log.Info(Globals.LogTag, "Checking if the AutoRotationSensor is supported");
- return CheckIfSupported(SensorType.AutoRotation, AccelerometerKey);
+ return CheckIfSupported(SensorType.AutoRotation, AutoRotationSensorKey);
}
}
/// Initializes a new instance of the <see cref="Tizen.Sensor.AutoRotationSensor"/> class.
/// </summary>
/// <since_tizen> 7 </since_tizen>
- /// <feature>http://tizen.org/feature/sensor.accelerometer</feature>
+ /// <feature>http://tizen.org/feature/screen.auto_rotation</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>