[Sensor] Change tizen feature of AutoRotationSensor (#2037)
authorMuHong Byun <mh.byun@samsung.com>
Thu, 24 Sep 2020 08:00:34 +0000 (17:00 +0900)
committerGitHub <noreply@github.com>
Thu, 24 Sep 2020 08:00:34 +0000 (17:00 +0900)
Signed-off-by: MuHong Byun <mh.byun@samsung.com>
src/Tizen.Sensor/Tizen.Sensor/Plugins/AutoRotationSensor.cs

index 8e5d1d7..4c77232 100644 (file)
@@ -25,7 +25,7 @@ namespace Tizen.Sensor
     /// <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;
 
@@ -54,7 +54,7 @@ namespace Tizen.Sensor
             get
             {
                 Log.Info(Globals.LogTag, "Checking if the AutoRotationSensor is supported");
-                return CheckIfSupported(SensorType.AutoRotation, AccelerometerKey);
+                return CheckIfSupported(SensorType.AutoRotation, AutoRotationSensorKey);
             }
         }
 
@@ -62,7 +62,7 @@ namespace Tizen.Sensor
         /// 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>