From ea9e315f2cad6ac46be974aceaa47a62748e19e9 Mon Sep 17 00:00:00 2001 From: "pr.jung" Date: Mon, 3 Jul 2017 16:57:45 +0900 Subject: [PATCH] Add API Level Change-Id: Ia685aa39e4e92baed33d0ae9b4030439255b3bd9 Signed-off-by: pr.jung --- src/Tizen.System/Device/Battery.cs | 12 ++++++++++++ src/Tizen.System/Device/DeviceEventArgs.cs | 5 +++++ src/Tizen.System/Device/Display.cs | 10 ++++++++++ src/Tizen.System/Device/Haptic.cs | 5 +++++ src/Tizen.System/Device/IR.cs | 2 ++ src/Tizen.System/Device/Led.cs | 5 +++++ src/Tizen.System/Device/Power.cs | 2 ++ 7 files changed, 41 insertions(+) diff --git a/src/Tizen.System/Device/Battery.cs b/src/Tizen.System/Device/Battery.cs index ebfb592..e622284 100755 --- a/src/Tizen.System/Device/Battery.cs +++ b/src/Tizen.System/Device/Battery.cs @@ -21,6 +21,7 @@ namespace Tizen.System /// /// Enumeration for the Battery level. /// + /// 3 public enum BatteryLevelStatus { /// @@ -29,6 +30,7 @@ namespace Tizen.System /// because the device starts a shutdown process soon /// after entering this level. /// + /// 3 Empty = 0, /// /// The battery charge is at a critical state. @@ -36,18 +38,22 @@ namespace Tizen.System /// because they are not guaranteed to work correctly /// at this battery status. /// + /// 3 Critical, /// /// The battery has little charge left. /// + /// 3 Low, /// /// The battery status is not to be careful. /// + /// 3 High, /// /// The battery status is full. /// + /// 3 Full } @@ -70,6 +76,7 @@ namespace Tizen.System /// /// Gets the battery charge percentage. /// + /// 3 /// It returns an integer value from 0 to 100 that indicates remaining /// battery charge as a percentage of the maximum level. public static int Percent @@ -88,6 +95,7 @@ namespace Tizen.System /// /// Gets the current Battery level. /// + /// 3 public static BatteryLevelStatus Level { get @@ -104,6 +112,7 @@ namespace Tizen.System /// /// Gets the current charging state. /// + /// 3 public static bool IsCharging { get @@ -122,6 +131,7 @@ namespace Tizen.System /// /// CapacityChanged is triggered when the battery charge percentage is changed /// + /// 3 /// /// A BatteryCapacityChangedEventArgs object that contains changed battery capacity (Percent) /// @@ -167,6 +177,7 @@ namespace Tizen.System /// /// LevelChanged is triggered when the battery level is changed /// + /// 3 /// /// A BatteryLevelChangedEventArgs object that contains changed battery level /// @@ -212,6 +223,7 @@ namespace Tizen.System /// ChargingStatusChanged is triggered when the Battery charging status is changed. /// This event is triggered when Charger is connected/Disconnected. /// + /// 3 /// /// A BatteryChargingStateChangedEventArgs object that contains changed battery charging state /// diff --git a/src/Tizen.System/Device/DeviceEventArgs.cs b/src/Tizen.System/Device/DeviceEventArgs.cs index 4b49039..829e8de 100644 --- a/src/Tizen.System/Device/DeviceEventArgs.cs +++ b/src/Tizen.System/Device/DeviceEventArgs.cs @@ -28,6 +28,7 @@ namespace Tizen.System /// The current capacity of the battery. /// Capacity is an integer value from 0 to 100, that indicates remaining battery charge as a percentage of the maximum level. /// + /// 3 public int Percent { get; internal set; } } @@ -40,6 +41,7 @@ namespace Tizen.System /// /// Level indicates the Current battery level status which is of type BatteryLevelStatus. /// + /// 3 public BatteryLevelStatus Level { get; internal set; } } @@ -52,6 +54,7 @@ namespace Tizen.System /// /// The charging state of the battery. Charging is of type boolean which indicates true/false based on currrent charging status. /// + /// 3 public bool IsCharging { get; internal set; } } @@ -64,6 +67,7 @@ namespace Tizen.System /// /// State indicates the current display state of the device which is an enum of type DisplayState. /// + /// 3 public DisplayState State { get; internal set; } } @@ -76,6 +80,7 @@ namespace Tizen.System /// /// Brightness indicates the current brightness level of the display as an integer. /// + /// 3 public int Brightness { get; internal set; } } } diff --git a/src/Tizen.System/Device/Display.cs b/src/Tizen.System/Device/Display.cs index 654d8be..4588001 100644 --- a/src/Tizen.System/Device/Display.cs +++ b/src/Tizen.System/Device/Display.cs @@ -22,19 +22,23 @@ namespace Tizen.System /// Enumeration for the available Display states. /// An application cannot put the device into the power off state or the suspend state. /// + /// 3 public enum DisplayState { /// /// Normal state /// + /// 3 Normal = 0, /// /// Screen dim state /// + /// 3 Dim, /// /// Screen off state /// + /// 3 Off } @@ -67,6 +71,7 @@ namespace Tizen.System /// /// The number of available display devices. /// + /// 3 public static int NumberOfDisplays { get @@ -84,6 +89,7 @@ namespace Tizen.System /// Get all the avaialble Displays. /// The Display at index zero is always assigned to the main display. /// + /// 3 public static IReadOnlyList Displays { get @@ -108,6 +114,7 @@ namespace Tizen.System /// /// The maximum brightness value that can be set for the specific Display. /// + /// 3 /// /// Display display = Display.Displays[0]; /// Console.WriteLine("Display MaxBrightness is: {0}", display.MaxBrightness); @@ -132,6 +139,7 @@ namespace Tizen.System /// /// Brightness value should be less than are equal to MaxBrightness value. /// + /// 3 /// When the invalid parameter value is set. /// If the privilege is not set. /// @@ -163,6 +171,7 @@ namespace Tizen.System /// /// The current device display state. /// + /// 3 public static DisplayState State { get @@ -181,6 +190,7 @@ namespace Tizen.System /// /// StateChanged is raised when the state of the display is changed /// + /// 3 /// /// An DisplayStateChangedEventArgs object that contains the changed state /// diff --git a/src/Tizen.System/Device/Haptic.cs b/src/Tizen.System/Device/Haptic.cs index 74dd266..b451f33 100644 --- a/src/Tizen.System/Device/Haptic.cs +++ b/src/Tizen.System/Device/Haptic.cs @@ -62,6 +62,7 @@ namespace Tizen.System /// /// Get the number of avaialble vibrators. /// + /// 3 public static int NumberOfVibrators { get @@ -78,6 +79,7 @@ namespace Tizen.System /// /// Get all the avaialble vibrators. /// + /// 3 public static IReadOnlyList Vibrators { get @@ -106,6 +108,7 @@ namespace Tizen.System /// Vibrates during the specified time with a constant intensity. /// This function can be used to start monotonous vibration for the specified time. /// + /// 3 /// The play duration in milliseconds /// The amount of the intensity variation (0 ~ 100) /// When the invalid parameter value is set. @@ -146,6 +149,7 @@ namespace Tizen.System /// Stops all vibration effects which are being played. /// This function can be used to stop all effects started by Vibrate(). /// + /// 3 /// In case of invalid vibrator instance is used. /// If the privilege is not set. /// In case of any system error. @@ -175,6 +179,7 @@ namespace Tizen.System /// Dispose API for closing the internal resources. /// This function can be used to stop all effects started by Vibrate(). /// + /// 3 public void Dispose() { Dispose(true); diff --git a/src/Tizen.System/Device/IR.cs b/src/Tizen.System/Device/IR.cs index b3848fb..c2631bf 100644 --- a/src/Tizen.System/Device/IR.cs +++ b/src/Tizen.System/Device/IR.cs @@ -35,6 +35,7 @@ namespace Tizen.System /// /// Gets the information whether IR module is available. /// + /// 3 public static bool IsAvailable { get @@ -52,6 +53,7 @@ namespace Tizen.System /// /// Transmits IR command. /// + /// 3 /// /// Carrier frequency to transmit IR command (Hertz). /// diff --git a/src/Tizen.System/Device/Led.cs b/src/Tizen.System/Device/Led.cs index e67db45..fbf2fa1 100644 --- a/src/Tizen.System/Device/Led.cs +++ b/src/Tizen.System/Device/Led.cs @@ -42,6 +42,7 @@ namespace Tizen.System { /// /// Gets the max brightness value of a LED that is located next to the camera. + /// 3 /// When the invalid parameter value is set. /// If the privilege is not set. /// In case of device does not support this behavior. @@ -68,6 +69,7 @@ namespace Tizen.System /// The brightness value range of LED is 0 to Tizen.System.Led.MaxBrightness value. /// Changing the brightness value will invoke the registered EventHandler for led BrightnessChanged (If any). /// + /// 3 /// When the invalid parameter value is set. /// If the privilege is not set. /// In case of device does not support this behavior. @@ -102,6 +104,7 @@ namespace Tizen.System /// /// Plays the LED that is located to the front of a device. /// + /// 3 /// Turn on time in milliseconds /// Turn off time in milliseconds /// @@ -134,6 +137,7 @@ namespace Tizen.System /// /// Stops the LED that is located to the front of a device. /// + /// 3 /// If the privilege is not set. /// In case of any system error. /// In case of device does not support this behavior. @@ -163,6 +167,7 @@ namespace Tizen.System /// /// StateChanged is raised when the LED state is changed /// + /// 3 /// The source of the event. /// An LedBrightnessChangedEventArgs object that contains the changed brightness. public static event EventHandler BrightnessChanged diff --git a/src/Tizen.System/Device/Power.cs b/src/Tizen.System/Device/Power.cs index 1d4ca9b..50c7dcc 100644 --- a/src/Tizen.System/Device/Power.cs +++ b/src/Tizen.System/Device/Power.cs @@ -37,6 +37,7 @@ namespace Tizen.System /// /// If the process dies, then every lock will be removed. /// + /// 3 /// /// The positive number in milliseconds or 0 for permanent lock /// So you must release the permanent lock of power state with ReleaseCpuLock() if timeout_ms is zero. @@ -59,6 +60,7 @@ namespace Tizen.System /// /// Releases the CPU lock state. /// + /// 3 /// If the privilege is not set. /// In case of any system error. /// -- 2.7.4