Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / 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 the BatteryPercentChanged event from the 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 the 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 the BatteryLevelChanged event from the battery class.
37     /// </summary>
38     public class BatteryLevelChangedEventArgs : EventArgs
39     {
40         internal BatteryLevelChangedEventArgs(){}
41         /// <summary>
42         ///  The level indicates the current battery level status which is a type of the 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 the BatteryChargingStateChanged event from the battery class.
50     /// </summary>
51     public class BatteryChargingStateChangedEventArgs : EventArgs
52     {
53         internal BatteryChargingStateChangedEventArgs() {}
54         /// <summary>
55         /// The charging state of the battery. Charging is a type of a boolean which indicates true/false based on the current 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 the DisplayStateChanged event from the display class.
63     /// </summary>
64     public class DisplayStateChangedEventArgs : EventArgs
65     {
66         internal DisplayStateChangedEventArgs() {}
67         /// <summary>
68         /// The state indicates the current display state of the device which is an enumeration of the 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 the LedBrightnessChanged event from the 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 }