Add API Level
[platform/core/csapi/system.git] / Tizen.System / Device / DeviceEventArgs.cs
1 /*
2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 using System;
18
19 namespace Tizen.System
20 {
21     /// <summary>
22     /// BatteryPercentChangedEventArgs is an extended EventArgs class. This class contains event arguments for BatteryPercentChanged event from Battery class.
23     /// </summary>
24     public class BatteryPercentChangedEventArgs : EventArgs
25     {
26         internal BatteryPercentChangedEventArgs(){}
27         /// <summary>
28         /// The current capacity of the battery.
29         /// Capacity is an integer value from 0 to 100, that indicates remaining battery charge as a percentage of the maximum level.
30         /// </summary>
31         /// <since_tizen> 3 </since_tizen>
32         public int Percent { get; internal set; }
33     }
34
35     /// <summary>
36     /// BatteryLevelChangedEventArgs is an extended EventArgs class. This class contains event arguments for BatteryLevelChanged event from Battery class.
37     /// </summary>
38     public class BatteryLevelChangedEventArgs : EventArgs
39     {
40         internal BatteryLevelChangedEventArgs(){}
41         /// <summary>
42         /// Level indicates the Current battery level status which is of type BatteryLevelStatus.
43         /// </summary>
44         /// <since_tizen> 3 </since_tizen>
45         public BatteryLevelStatus Level { get; internal set; }
46     }
47
48     /// <summary>
49     /// BatteryChargingStateChangedEventArgs is an extended EventArgs class. This class contains event arguments for BatteryChargingStateChanged event from Battery class.
50     /// </summary>
51     public class BatteryChargingStateChangedEventArgs : EventArgs
52     {
53         internal BatteryChargingStateChangedEventArgs() {}
54         /// <summary>
55         /// The charging state of the battery. Charging is of type boolean which indicates true/false based on currrent charging status.
56         /// </summary>
57         /// <since_tizen> 3 </since_tizen>
58         public bool IsCharging { get; internal set; }
59     }
60
61     /// <summary>
62     /// DisplayStateChangedEventArgs is an extended EventArgs class. This class contains event arguments for DisplayStateChanged event from Display class.
63     /// </summary>
64     public class DisplayStateChangedEventArgs : EventArgs
65     {
66         internal DisplayStateChangedEventArgs() {}
67         /// <summary>
68         /// State indicates the current display state of the device which is an enum of type DisplayState.
69         /// </summary>
70         /// <since_tizen> 3 </since_tizen>
71         public DisplayState State { get; internal set; }
72     }
73
74     /// <summary>
75     /// LedBrightnessChangedEventArgs is an extended EventArgs class. This class contains event arguments for LedBrightnessChanged event from Led class.
76     /// </summary>
77     public class LedBrightnessChangedEventArgs : EventArgs
78     {
79         internal LedBrightnessChangedEventArgs() {}
80         /// <summary>
81         /// Brightness indicates the current brightness level of the display as an integer.
82         /// </summary>
83         /// <since_tizen> 3 </since_tizen>
84         public int Brightness { get; internal set; }
85     }
86 }