/* * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ using System; using System.ComponentModel; namespace Tizen.Sensor { /// /// The SensorType Enum defintion for all sensor types. /// internal enum SensorType { /// /// All sensors. This can be used to retrieve the Sensor class object for all available sensors. /// All = -1, /// /// Accelerometer sensor. /// Accelerometer = 0, /// /// Gravity sensor. /// GravitySensor = 1, /// /// Linear Acceleration sensor. /// LinearAccelerationSensor = 2, /// /// Magnetometer sensor. /// Magnetometer = 3, /// /// Rotation Vector sensor. /// RotationVectorSensor = 4, /// /// Orientation sensor. /// OrientationSensor = 5, /// /// The Gyroscope sensor. /// Gyroscope = 6, /// /// Light sensor. /// LightSensor = 7, /// /// Proximity sensor. /// ProximitySensor = 8, /// /// Pressure sensor. /// PressureSensor = 9, /// /// Ultraviolet sensor. /// UltravioletSensor = 10, /// /// Temperature sensor. /// TemperatureSensor = 11, /// /// Humidity sensor. /// HumiditySensor = 12, /// /// Hear rate monitor sensor. /// HeartRateMonitor = 13, /// /// The Uncalibrated Gyroscope sensor. /// UncalibratedGyroscope = 17, /// /// Uncalibrated Geomagnetic sensor. /// UncalibratedMagnetometer = 18, /// /// The Gyroscope-based rotation vector sensor. /// GyroscopeRotationVectorSensor = 19, /// /// Geomagnetic-based rotation vector sensor. /// MagnetometerRotationVectorSensor = 20, /// /// Pedometer sensor. /// Pedometer = 0x300, /// /// Sleep monitor sensor. /// SleepMonitor = 0x301, /// /// Stationary activity detector. /// /// Auto Rotation sensor. /// AutoRotation = 0x901, /// StationaryActivityDetector = 0x1A00, /// /// Walking activity detector. /// WalkingActivityDetector = 0x1A00, /// /// Running activity detector. /// RunningActivityDetector = 0x1A00, /// /// InVehicle activity detector. /// InVehicleActivityDetector = 0x1A00, /// /// Wrist up gesture detector. /// WristUpGestureDetector = 0x1201, /// /// Pick up gesture detector. /// PickUpGestureDetector = 0x1204, /// /// Face down gesture detector. /// FaceDownGestureDetector = 0x1205 } /// /// The sensor attribute. /// internal enum SensorAttribute { /// /// The axis orientation. /// AxisOrientation = 1, /// /// The pause policy. /// PausePolicy } /// /// The SensorDataAccuracy Enum definition for all possible sensor data accuracy values. /// /// 3 public enum SensorDataAccuracy { /// /// Undefined sensor data accuracy. /// /// 3 Undefined = -1, /// /// Sensor data not accurate. /// /// 3 Bad = 0, /// /// Moderately accurate sensor data. /// /// 3 Normal = 1, /// /// Highly accurate sensor data. /// /// 3 Good = 2, /// /// Very highly accurate sensor data. /// /// 3 VeryGood = 3 } /// /// The Sensor Option Enum definition for pause policies of sensor. /// /// 3 public enum SensorPausePolicy { /// /// Receives data when the LCD is off and in the power save mode. /// /// 3 None, /// /// Does not receive data when the LCD is off. /// /// 3 DisplayOff, /// /// Does not receive data in the power save mode. /// /// 3 PowerSaveMode, /// /// Does not receive data when the LCD is off and in the power save mode. /// /// 3 All } /// /// The pedometer state. /// /// 3 public enum PedometerState { /// /// Unknown. /// /// 3 Unknown = -1, /// /// Stop state. /// /// 3 Stop, /// /// Walking state. /// /// 3 Walk, /// /// Running state. /// /// 3 Run } /// /// The sleep monitor state. /// /// 3 public enum SleepMonitorState { /// /// Unknown. /// /// 3 Unknown = -1, /// /// The wake state. /// /// 3 Wake, /// /// The sleeping state. /// /// 3 Sleep } /// /// The proximity sensor state. /// /// 3 public enum ProximitySensorState { /// /// Unknown. /// /// 3 Unknown = -1, /// /// Near sate. /// /// 3 Near = 0, /// /// Far state. /// /// 3 Far = 5 } /// /// The detector sensor state. /// /// 3 public enum DetectorState { /// /// Unknown. /// /// 3 Unknown = -1, /// /// None sate. /// /// 3 NotDetected = 0, /// /// Detected state. /// /// 3 Detected = 1 } /// /// The auto rotation state. /// [EditorBrowsable(EditorBrowsableState.Never)] public enum AutoRotationState { /// /// Degree_0 sate. /// Degree_0 = 1, /// /// Degree_90 state. /// Degree_90 = 2, /// /// Degree_180 state. /// Degree_180 = 3, /// /// Degree_270 state. /// Degree_270 = 4 } }