[NUI] TCSACR-226 code change (#1032)
[platform/core/csapi/tizenfx.git] / src / Tizen.Applications.WidgetControl / Tizen.Applications / WidgetLifecycleEventArgs.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.Applications
20 {
21     /// <summary>
22     /// The class for event arguments of the widget lifecycle.
23     /// </summary>
24     /// <since_tizen> 3 </since_tizen>
25     public class WidgetLifecycleEventArgs : EventArgs
26     {
27         internal WidgetLifecycleEventArgs()
28         {
29         }
30
31         /// <summary>
32         /// Enumeration for the event type.
33         /// </summary>
34         /// <since_tizen> 3 </since_tizen>
35         public enum EventType
36         {
37             /// <summary>
38             /// The widget is created.
39             /// </summary>
40             Created,
41
42             /// <summary>
43             /// The widget is destroyed.
44             /// </summary>
45             Destroyed,
46
47             /// <summary>
48             /// The widget is paused.
49             /// </summary>
50             Paused,
51
52             /// <summary>
53             /// The widget is resumed.
54             /// </summary>
55             Resumed
56         }
57
58         /// <summary>
59         ///  The widget ID.
60         /// </summary>
61         /// <since_tizen> 3 </since_tizen>
62         public string WidgetId { get; internal set; }
63
64         /// <summary>
65         /// The widget instance ID.
66         /// </summary>
67         /// <since_tizen> 3 </since_tizen>
68         public string InstanceId { get; internal set; }
69
70         /// <summary>
71         /// The event type.
72         /// </summary>
73         /// <since_tizen> 3 </since_tizen>
74         public EventType Type { get; internal set; }
75     }
76 }