csapi-sensor: set default value to properties
authorkibak.yoon <kibak.yoon@samsung.com>
Tue, 25 Oct 2016 02:44:28 +0000 (11:44 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Tue, 25 Oct 2016 05:50:19 +0000 (14:50 +0900)
- add Unknown state(-1) to enum
- change count type from int to uint

Change-Id: Iaf917ccd2532573bf313ed1aebcd48e76302c894
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
29 files changed:
Tizen.Sensor/Tizen.Sensor/EventArgs/PedometerDataUpdatedEventArgs.cs
Tizen.Sensor/Tizen.Sensor/Plugins/Accelerometer.cs
Tizen.Sensor/Tizen.Sensor/Plugins/FaceDownGestureDetector.cs
Tizen.Sensor/Tizen.Sensor/Plugins/GravitySensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/Gyroscope.cs
Tizen.Sensor/Tizen.Sensor/Plugins/GyroscopeRotationVectorSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/HeartRateMonitor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/HumiditySensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/InVehicleActivityDetector.cs
Tizen.Sensor/Tizen.Sensor/Plugins/LightSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/LinearAccelerationSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/Magnetometer.cs
Tizen.Sensor/Tizen.Sensor/Plugins/MagnetometerRotationVectorSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/OrientationSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/Pedometer.cs
Tizen.Sensor/Tizen.Sensor/Plugins/PickUpGestureDetector.cs
Tizen.Sensor/Tizen.Sensor/Plugins/PressureSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/ProximitySensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/RotationVectorSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/RunningActivityDetector.cs
Tizen.Sensor/Tizen.Sensor/Plugins/SleepMonitor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/StationaryActivityDetector.cs
Tizen.Sensor/Tizen.Sensor/Plugins/TemperatureSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/UltravioletSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedGyroscope.cs
Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedMagnetometer.cs
Tizen.Sensor/Tizen.Sensor/Plugins/WalkingActivityDetector.cs
Tizen.Sensor/Tizen.Sensor/Plugins/WristUpGestureDetector.cs
Tizen.Sensor/Tizen.Sensor/SensorEnumerations.cs

index c767740b4604f1b1f928d7377339fb41e27da0b5..656232b5dcb5aa1950402f2a2be53c57b371600b 100644 (file)
@@ -17,9 +17,9 @@ namespace Tizen.Sensor
     {
         internal PedometerDataUpdatedEventArgs(float[] values)
         {
-            StepCount = (int) values[0];
-            WalkStepCount = (int) values[1];
-            RunStepCount = (int) values[2];
+            StepCount = (uint) values[0];
+            WalkStepCount = (uint) values[1];
+            RunStepCount = (uint) values[2];
             MovingDistance = values[3];
             CalorieBurned = values[4];
             LastSpeed = values[5];
@@ -30,17 +30,17 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the step count
         /// </summary>
-        public int StepCount { get; private set; }
+        public uint StepCount { get; private set; }
 
         /// <summary>
         /// Gets the walking step count
         /// </summary>
-        public int WalkStepCount { get; private set; }
+        public uint WalkStepCount { get; private set; }
 
         /// <summary>
         /// Gets the running step count
         /// </summary>
-        public int RunStepCount { get; private set; }
+        public uint RunStepCount { get; private set; }
 
         /// <summary>
         /// Gets the moving distance
@@ -67,4 +67,4 @@ namespace Tizen.Sensor
         /// </summary>
         public PedometerState LastStepStatus { get; private set; }
     }
-}
\ No newline at end of file
+}
index 4a32f9af36f300225d1ddf2900c06f6860887213..7e5c23f7d8ec55d66bcb3d48c6c1d82044e05840 100644 (file)
@@ -19,17 +19,17 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the X component of the acceleration.
         /// </summary>
-        public float X { get; private set; }
+        public float X { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Y component of the acceleration.
         /// </summary>
-        public float Y { get; private set; }
+        public float Y { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Z component of the acceleration.
         /// </summary>
-        public float Z { get; private set; }
+        public float Z { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Returns true or false based on whether accelerometer sensor is supported by device.
index e29d6b7a30da7dd337eca5c71f4461f290727118..4bfc32ee1e292b7dde39de3f4595f699c87a30ca 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the state of the face down gesture.
         /// </summary>
-        public DetectorState FaceDown { get; private set; }
+        public DetectorState FaceDown { get; private set; } = DetectorState.Unknown;
 
         /// <summary>
         /// Returns true or false based on whether face down gesture detector is supported by device.
index 44b942be3b527dbf0e427b6d615a65444fde7fe8..e7812c5b83eae285c4678322102b00371ef9d109 100644 (file)
@@ -21,17 +21,17 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the X component of the gravity.
         /// </summary>
-        public float X { get; private set; }
+        public float X { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Y component of the gravity.
         /// </summary>
-        public float Y { get; private set; }
+        public float Y { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Z component of the gravity.
         /// </summary>
-        public float Z { get; private set; }
+        public float Z { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Returns true or false based on whether gravity sensor is supported by device.
index 10d7953b49e8c6a276a6ad0810c5ff877b846679..9d29073c7ae02872e7560857052460c996c0647e 100644 (file)
@@ -20,17 +20,17 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the X component of the acceleration.
         /// </summary>
-        public float X { get; private set; }
+        public float X { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Y component of the acceleration.
         /// </summary>
-        public float Y { get; private set; }
+        public float Y { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Z component of the acceleration.
         /// </summary>
-        public float Z { get; private set; }
+        public float Z { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Returns true or false based on whether gyroscope sensor is supported by device.
index 4bd07abdc95c28ac8e7cb404f2e0a8a1548aea0d..5d948e13b596362962f44c1808d78f05f7a16533 100644 (file)
@@ -20,22 +20,22 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the X component of the gyroscope rotation vector.
         /// </summary>
-        public float X { get; private set; }
+        public float X { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Y component of the gyroscope rotation vector.
         /// </summary>
-        public float Y { get; private set; }
+        public float Y { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Z component of the gyroscope rotation vector.
         /// </summary>
-        public float Z { get; private set; }
+        public float Z { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the W component of the gyroscope rotation vector.
         /// </summary>
-        public float W { get; private set; }
+        public float W { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Accuracy of the gyroscope rotation vector data.
index 54d6fb58d6e5b9dd05828d2771307be0d77b05d1..3ec478d77e82baa7681278338d7c389c75d6949d 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the value of the heart rate monitor.
         /// </summary>
-        public int HeartRate { get; private set; }
+        public int HeartRate { get; private set; } = int.MinValue;
 
         /// <summary>
         /// Returns true or false based on whether heart rate monitor is supported by device.
index 128e86e34be775e0b25e37a2b79ba11d96f52b7e..28e6fbc528dd175d37807526bf38427ec5058c29 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the value of the humidity sensor.
         /// </summary>
-        public float Humidity { get; private set; }
+        public float Humidity { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Returns true or false based on whether humidity sensor is supported by device.
index 7b5cffaef4ea958134c1d2a18ec87fd9f7677188..035b0c388e26f54e0049d9807a08a68a6e11e466 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the state of in-vehicle activity detector
         /// </summary>
-        public DetectorState InVehicle { get; private set; }
+        public DetectorState InVehicle { get; private set; } = DetectorState.Unknown;
 
         /// <summary>
         /// Returns true or false based on whether in-vehicle activity detector is supported by device.
index 2bbe5fd3bc599b9a0d0aa0493b8fa315203e1e8c..485ffa55072989ad7371fe087412edb161d62322 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the Level of the light.
         /// </summary>
-        public float Level { get; private set; }
+        public float Level { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Returns true or false based on whether light sensor is supported by device.
index eefb2586d8d8d8523b57924abe53cadf31703ce9..43a42ee82b6efad0526ddc51b780241ef9b8fb19 100644 (file)
@@ -21,17 +21,17 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the X component of the linear acceleration.
         /// </summary>
-        public float X { get; private set; }
+        public float X { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Y component of the linear acceleration.
         /// </summary>
-        public float Y { get; private set; }
+        public float Y { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Z component of the linear acceleration.
         /// </summary>
-        public float Z { get; private set; }
+        public float Z { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Returns true or false based on whether linear acceleration sensor is supported by device.
index 80baee8a1f497fc3ca700fd2d2a71ead3424f0e4..fffb672d1935072f6de2348f3836ecaf979da3d1 100644 (file)
@@ -21,17 +21,17 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the X component of the magnetometer.
         /// </summary>
-        public float X { get; private set; }
+        public float X { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Y component of the magnetometer.
         /// </summary>
-        public float Y { get; private set; }
+        public float Y { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Z component of the magnetometer.
         /// </summary>
-        public float Z { get; private set; }
+        public float Z { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Returns true or false based on whether magnetometer is supported by device.
index 1b7b1044d62553970f80992569aa2c00acd65a06..948407e2ffebe070a1b38d9d44aeec87440fa108 100644 (file)
@@ -21,22 +21,22 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the X component of the magnetometer rotation vector.
         /// </summary>
-        public float X { get; private set; }
+        public float X { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Y component of the magnetometer rotation vector.
         /// </summary>
-        public float Y { get; private set; }
+        public float Y { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Z component of the magnetometer rotation vector.
         /// </summary>
-        public float Z { get; private set; }
+        public float Z { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the W component of the magnetometer rotation vector.
         /// </summary>
-        public float W { get; private set; }
+        public float W { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Accuracy of the magnetometer rotation vector data.
index ae8512b25c9b49b49fe7fd137e15d51aee44f955..fab0a0e76c4390bf2f4a6dc7c6d0466e0ea41121 100644 (file)
@@ -21,17 +21,17 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the Azimuth component of the orientation.
         /// </summary>
-        public float Azimuth { get; private set; }
+        public float Azimuth { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Pitch component of the orientation.
         /// </summary>
-        public float Pitch { get; private set; }
+        public float Pitch { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Roll component of the orientation.
         /// </summary>
-        public float Roll { get; private set; }
+        public float Roll { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Returns true or false based on whether orientation sensor is supported by device.
index 32178d9af792c0c903b4d920fb158977bcd51d9d..911ec163cb844f57aec4469cd12a21dca056a8f2 100644 (file)
@@ -20,42 +20,42 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the step count
         /// </summary>
-        public int StepCount { get; private set; }
+        public uint StepCount { get; private set; } = 0;
 
         /// <summary>
         /// Gets the walking step count
         /// </summary>
-        public int WalkStepCount { get; private set; }
+        public uint WalkStepCount { get; private set; } = 0;
 
         /// <summary>
         /// Gets the running step count
         /// </summary>
-        public int RunStepCount { get; private set; }
+        public uint RunStepCount { get; private set; } = 0;
 
         /// <summary>
         /// Gets the moving distance
         /// </summary>
-        public float MovingDistance { get; private set; }
+        public float MovingDistance { get; private set; } = 0;
 
         /// <summary>
         /// Gets the calorie burned
         /// </summary>
-        public float CalorieBurned { get; private set; }
+        public float CalorieBurned { get; private set; } = 0;
 
         /// <summary>
         /// Gets the last speed
         /// </summary>
-        public float LastSpeed { get; private set; }
+        public float LastSpeed { get; private set; } = 0;
 
         /// <summary>
         /// Gets the last stepping frequency
         /// </summary>
-        public float LastSteppingFrequency { get; private set; }
+        public float LastSteppingFrequency { get; private set; } = 0;
 
         /// <summary>
         /// Gets the last step status
         /// </summary>
-        public PedometerState LastStepStatus { get; private set; }
+        public PedometerState LastStepStatus { get; private set; } = PedometerState.Unknown;
 
         /// <summary>
         /// Returns true or false based on whether pedometer sensor is supported by device.
@@ -149,9 +149,9 @@ namespace Tizen.Sensor
         {
             Interop.SensorEventStruct sensorData = Interop.IntPtrToEventStruct(sensorPtr);
             TimeSpan = new TimeSpan((Int64)sensorData.timestamp);
-            StepCount = (int)sensorData.values[0];
-            WalkStepCount = (int)sensorData.values[1];
-            RunStepCount = (int)sensorData.values[2];
+            StepCount = (uint)sensorData.values[0];
+            WalkStepCount = (uint)sensorData.values[1];
+            RunStepCount = (uint)sensorData.values[2];
             MovingDistance = sensorData.values[3];
             CalorieBurned = sensorData.values[4];
             LastSpeed = sensorData.values[5];
index 80c273901a8112a2db7313ef27c44e796e1b46b7..c140ebb9cf43c2a2b11bb54b2b0c0cfccfed5278 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the state of the pick up gesture.
         /// </summary>
-        public DetectorState PickUp { get; private set; }
+        public DetectorState PickUp { get; private set; } = DetectorState.Unknown;
 
         /// <summary>
         /// Returns true or false based on whether pick up gesture detector is supported by device.
index 55d7b424a05fdd02ff439f2662941b29a72d1d94..c23bc05b4feb6735648d1f8ae4acd1816a3a7b19 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the value of the pressure sensor.
         /// </summary>
-        public float Pressure { get; private set; }
+        public float Pressure { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Returns true or false based on whether pressure sensor is supported by device.
index 898269f3d79690202f1a4ae0648e4f598af91a25..d793ff1ba1e7fddf789da07dc487746735352183 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the proximity state.
         /// </summary>
-        public ProximitySensorState Proximity { get; private set; }
+        public ProximitySensorState Proximity { get; private set; } = ProximitySensorState.Unknown;
 
         /// <summary>
         /// Returns true or false based on whether proximity sensor is supported by device.
index 4c400c3bef9d648e825bf7242df501398dbcd3d5..43942e18e7509462cf8d72a84c8a570c9bf04b12 100644 (file)
@@ -21,27 +21,27 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the X component of the rotation vector.
         /// </summary>
-        public float X { get; private set; }
+        public float X { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Y component of the rotation vector.
         /// </summary>
-        public float Y { get; private set; }
+        public float Y { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Z component of the rotation vector.
         /// </summary>
-        public float Z { get; private set; }
+        public float Z { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the W component of the rotation vector.
         /// </summary>
-        public float W { get; private set; }
+        public float W { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Accuracy of the rotation vector data.
         /// </summary>
-        public SensorDataAccuracy Accuracy { get; private set; }
+        public SensorDataAccuracy Accuracy { get; private set; } = SensorDataAccuracy.Undefined;
 
         /// <summary>
         /// Returns true or false based on whether rotation vector sensor is supported by device.
index 72fe41043c6472a831cdd5ee26991870fa3db5a9..f1c0990ff3264621bd2b9bf670b7a1577f0313b0 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the state of running activity detector
         /// </summary>
-        public DetectorState Running { get; private set; }
+        public DetectorState Running { get; private set; } = DetectorState.Unknown;
 
         /// <summary>
         /// Returns true or false based on whether running activity detector is supported by device.
index 543f5e6faafa8e0f3b727be83788823b0b38914b..dfd3ffa8110812dc41abbf2d95a7d6eea6302c39 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the value of the sleep state.
         /// </summary>
-        public SleepMonitorState SleepState { get; private set; }
+        public SleepMonitorState SleepState { get; private set; } = SleepMonitorState.Unknown;
 
         /// <summary>
         /// Returns true or false based on whether sleep monitor is supported by device.
index b5c5b7c132e979e2d63c871eb15a17c31a48714d..39504bbd453301562a0d9aeda31ea9afa69c0f1d 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the state of stationary activity detector
         /// </summary>
-        public DetectorState Stationary { get; private set; }
+        public DetectorState Stationary { get; private set; } = DetectorState.Unknown;
 
         /// <summary>
         /// Returns true or false based on whether stationary activity detector is supported by device.
index 3fdc409691c6e07abd8d5e0b8012dbaa32b8ae1d..68a7ebdde7b458da4bf6e5960f30c6ea35186c27 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the value of the temperature sensor.
         /// </summary>
-        public float Temperature { get; private set; }
+        public float Temperature { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Returns true or false based on whether temperature sensor is supported by device.
index 4aeba27b15225cfbff1d9744f1ee308a6f2bc35c..6009d90793c4014768d172efe413091eb21edfa9 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the value of the ultraviolet sensor.
         /// </summary>
-        public float UltravioletIndex { get; private set; }
+        public float UltravioletIndex { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Returns true or false based on whether ultraviolet sensor is supported by device.
index e3a8b87ff3ecc09a44edbba9d36d4ece27425f06..04c368a13da24fcb52d5614158975f406458e239 100644 (file)
@@ -20,32 +20,32 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the X component of the acceleration.
         /// </summary>
-        public float X { get; private set; }
+        public float X { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Y component of the acceleration.
         /// </summary>
-        public float Y { get; private set; }
+        public float Y { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Z component of the acceleration.
         /// </summary>
-        public float Z { get; private set; }
+        public float Z { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the BiasX component of the uncalibrated gyroscope data.
         /// </summary>
-        public float BiasX { get; private set; }
+        public float BiasX { get; private set; } = 0;
 
         /// <summary>
         /// Gets the BiasY component of the uncalibrated gyroscope data.
         /// </summary>
-        public float BiasY { get; private set; }
+        public float BiasY { get; private set; } = 0;
 
         /// <summary>
         /// Gets the BiasZ component of the uncalibrated gyroscope data.
         /// </summary>
-        public float BiasZ { get; private set; }
+        public float BiasZ { get; private set; } = 0;
 
         /// <summary>
         /// Returns true or false based on whether uncalibrated gyroscope sensor is supported by device.
index c8771162fc11d4f65762542c49e5faf01372f842..7da8d5f72737bc545d14ba7d43fca9349cd8c8ba 100644 (file)
@@ -21,32 +21,32 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the X component of the acceleration.
         /// </summary>
-        public float X { get; private set; }
+        public float X { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Y component of the acceleration.
         /// </summary>
-        public float Y { get; private set; }
+        public float Y { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the Z component of the acceleration.
         /// </summary>
-        public float Z { get; private set; }
+        public float Z { get; private set; } = float.MinValue;
 
         /// <summary>
         /// Gets the BiasX component of the uncalibrated magnetometer data.
         /// </summary>
-        public float BiasX { get; private set; }
+        public float BiasX { get; private set; } = 0;
 
         /// <summary>
         /// Gets the BiasY component of the uncalibrated magnetometer data.
         /// </summary>
-        public float BiasY { get; private set; }
+        public float BiasY { get; private set; } = 0;
 
         /// <summary>
         /// Gets the BiasZ component of the uncalibrated magnetometer data.
         /// </summary>
-        public float BiasZ { get; private set; }
+        public float BiasZ { get; private set; } = 0;
 
         /// <summary>
         /// Returns true or false based on whether uncalibrated magnetometer sensor is supported by device.
index 3b7dbf39b003075671f4aa4ca6687bd81e7143e1..d82fc7860c58e63084e34836b9ce4670808960e3 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the state of walking activity detector
         /// </summary>
-        public DetectorState Walking { get; private set; }
+        public DetectorState Walking { get; private set; } = DetectorState.Unknown;
 
         /// <summary>
         /// Returns true or false based on whether walking activity detector is supported by device.
index 3c92416e4c82a66c22eeaf2edf2910cb28a00884..aa51a6c46753d368100a67b77c57e99572b18e82 100644 (file)
@@ -20,7 +20,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Gets the state of the wrist up gesture.
         /// </summary>
-        public DetectorState WristUp { get; private set; }
+        public DetectorState WristUp { get; private set; } = DetectorState.Unknown;
 
         /// <summary>
         /// Returns true or false based on whether wrist up gesture detector is supported by device.
index 0999a774c917187896084bd07876a43663b42000..90d1ffccdce0e0a509ad5400a0f075a2f421832e 100644 (file)
@@ -203,7 +203,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Unknown.
         /// </summary>
-        Unknown,
+        Unknown = -1,
 
         /// <summary>
         /// Stop state.
@@ -229,7 +229,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Unknown.
         /// </summary>
-        Unknown,
+        Unknown = -1,
 
         /// <summary>
         /// The wake state.
@@ -247,6 +247,11 @@ namespace Tizen.Sensor
     /// </summary>
     public enum ProximitySensorState
     {
+        /// <summary>
+        /// Unknown.
+        /// </summary>
+        Unknown = -1,
+
         /// <summary>
         /// Near sate.
         /// </summary>
@@ -263,6 +268,11 @@ namespace Tizen.Sensor
     /// </summary>
     public enum DetectorState
     {
+        /// <summary>
+        /// Unknown.
+        /// </summary>
+        Unknown = -1,
+
         /// <summary>
         /// None sate.
         /// </summary>