Merge "[Multimedia] Modified the Radio to disable sound session compatibility."
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / WidgetView.cs
1 /*
2  * Copyright(c) 2017 Samsung Electronics Co., Ltd.
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 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
18 //------------------------------------------------------------------------------
19 // <auto-generated />
20 //
21 // This file was automatically generated by SWIG (http://www.swig.org).
22 // Version 3.0.12
23 //
24 // Do not make changes to this file unless you know what you are doing--modify
25 // the SWIG interface file instead.
26 //------------------------------------------------------------------------------
27
28 namespace Tizen.NUI
29 {
30     using System;
31     using System.Runtime.InteropServices;
32     using Tizen.NUI.BaseComponents;
33
34     /// <summary>
35     /// The WidgetView is a class for displaying the widget image and controlling the widget.<br />
36     /// Input events that the WidgetView gets are delivered to the widget.
37     /// </summary>
38     public class WidgetView : View
39     {
40         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
41
42         internal WidgetView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.WidgetView_SWIGUpcast(cPtr), cMemoryOwn)
43         {
44             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
45         }
46
47         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WidgetView obj)
48         {
49             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
50         }
51
52         /// <summary>
53         /// To make the Button instance be disposed.
54         /// </summary>
55         protected override void Dispose(DisposeTypes type)
56         {
57             if (disposed)
58             {
59                 return;
60             }
61
62             if (type == DisposeTypes.Explicit)
63             {
64                 //Called by User
65                 //Release your own managed resources here.
66                 //You should release all of your own disposable objects here.
67
68             }
69
70             //Release your own unmanaged resources here.
71             //You should not access any managed member here except static instance.
72             //because the execution order of Finalizes is non-deterministic.
73             if (swigCPtr.Handle != global::System.IntPtr.Zero)
74             {
75                 if (swigCMemOwn)
76                 {
77                     swigCMemOwn = false;
78                     NDalicManualPINVOKE.delete_WidgetView(swigCPtr);
79                 }
80                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
81             }
82             base.Dispose();
83         }
84
85         internal new class Property
86         {
87             internal static readonly int WIDGET_ID = NDalicManualPINVOKE.WidgetView_Property_WIDGET_ID_get();
88             internal static readonly int INSTANCE_ID = NDalicManualPINVOKE.WidgetView_Property_INSTANCE_ID_get();
89             internal static readonly int CONTENT_INFO = NDalicManualPINVOKE.WidgetView_Property_CONTENT_INFO_get();
90             internal static readonly int TITLE = NDalicManualPINVOKE.WidgetView_Property_TITLE_get();
91             internal static readonly int UPDATE_PERIOD = NDalicManualPINVOKE.WidgetView_Property_UPDATE_PERIOD_get();
92             internal static readonly int PREVIEW = NDalicManualPINVOKE.WidgetView_Property_PREVIEW_get();
93             internal static readonly int LOADING_TEXT = NDalicManualPINVOKE.WidgetView_Property_LOADING_TEXT_get();
94             internal static readonly int WIDGET_STATE_FAULTED = NDalicManualPINVOKE.WidgetView_Property_WIDGET_STATE_FAULTED_get();
95             internal static readonly int PERMANENT_DELETE = NDalicManualPINVOKE.WidgetView_Property_PERMANENT_DELETE_get();
96             internal static readonly int RETRY_TEXT = NDalicManualPINVOKE.WidgetView_Property_RETRY_TEXT_get();
97             internal static readonly int EFFECT = NDalicManualPINVOKE.WidgetView_Property_EFFECT_get();
98         }
99
100         /// <summary>
101         /// Creates a new WidgetView.
102         /// </summary>
103         /// <since_tizen> 4 </since_tizen>
104         public WidgetView(string widgetId, string contentInfo, int width, int height, float updatePeriod) : this(NDalicManualPINVOKE.WidgetView_New(widgetId, contentInfo, width, height, updatePeriod), true)
105         {
106             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
107
108         }
109
110         internal new static WidgetView DownCast(BaseHandle handle)
111         {
112             WidgetView ret = new WidgetView(NDalicManualPINVOKE.WidgetView_DownCast(BaseHandle.getCPtr(handle)), true);
113             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
114             return ret;
115         }
116
117         internal WidgetView(WidgetView handle) : this(NDalicManualPINVOKE.new_WidgetView__SWIG_1(WidgetView.getCPtr(handle)), true)
118         {
119             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120         }
121
122         internal WidgetView Assign(WidgetView handle)
123         {
124             WidgetView ret = new WidgetView(NDalicManualPINVOKE.WidgetView_Assign(swigCPtr, WidgetView.getCPtr(handle)), false);
125             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
126             return ret;
127         }
128
129         internal static WidgetView GetWidgetViewFromPtr(global::System.IntPtr cPtr)
130         {
131             WidgetView ret = new WidgetView(cPtr, false);
132             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
133             return ret;
134         }
135
136         /// <summary>
137         /// Event arguments of the widget view.
138         /// </summary>
139         public class WidgetViewEventArgs : EventArgs
140         {
141             private WidgetView _widgetView;
142
143             /// <summary>
144             /// The widet view.
145             /// </summary>
146             /// <since_tizen> 4 </since_tizen>
147             public WidgetView WidgetView
148             {
149                 get
150                 {
151                     return _widgetView;
152                 }
153                 set
154                 {
155                     _widgetView = value;
156                 }
157             }
158         }
159
160         private EventHandler<WidgetViewEventArgs> _widgetAddedEventHandler;
161         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
162         private delegate void WidgetAddedEventCallbackType(IntPtr data);
163         private WidgetAddedEventCallbackType _widgetAddedEventCallback;
164
165         /// <summary>
166         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
167         /// This signal is emitted after all resources required by a control are loaded and ready.<br />
168         /// Most resources are only loaded when the control is placed on the stage.<br />
169         /// </summary>
170         /// <since_tizen> 3 </since_tizen>
171         public event EventHandler<WidgetViewEventArgs> WidgetAdded
172         {
173             add
174             {
175                 if (_widgetAddedEventHandler == null)
176                 {
177                     _widgetAddedEventCallback = OnWidgetAdded;
178                     WidgetAddedSignal().Connect(_widgetAddedEventCallback);
179                 }
180
181                 _widgetAddedEventHandler += value;
182             }
183
184             remove
185             {
186                 _widgetAddedEventHandler -= value;
187
188                 if (_widgetAddedEventHandler == null && WidgetAddedSignal().Empty() == false)
189                 {
190                     WidgetAddedSignal().Disconnect(_widgetAddedEventCallback);
191                 }
192             }
193         }
194
195         // Callback for WidgetView WidgetAdded signal
196         private void OnWidgetAdded(IntPtr data)
197         {
198             WidgetViewEventArgs e = new WidgetViewEventArgs();
199             if(data != null)
200             {
201                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
202             }
203
204             if (_widgetAddedEventHandler != null)
205             {
206                 _widgetAddedEventHandler(this, e);
207             }
208         }
209
210         private EventHandler<WidgetViewEventArgs> _widgetDeletedEventHandler;
211         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
212         private delegate void WidgetDeletedEventCallbackType(IntPtr data);
213         private WidgetDeletedEventCallbackType _widgetDeletedEventCallback;
214
215         /// <summary>
216         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
217         /// This signal is emitted after all resources required by a control are loaded and ready.<br />
218         /// Most resources are only loaded when the control is placed on the stage.<br />
219         /// </summary>
220         /// <since_tizen> 4 </since_tizen>
221         public event EventHandler<WidgetViewEventArgs> WidgetDeleted
222         {
223             add
224             {
225                 if (_widgetDeletedEventHandler == null)
226                 {
227                     _widgetDeletedEventCallback = OnWidgetDeleted;
228                     WidgetDeletedSignal().Connect(_widgetDeletedEventCallback);
229                 }
230
231                 _widgetDeletedEventHandler += value;
232             }
233
234             remove
235             {
236                 _widgetDeletedEventHandler -= value;
237
238                 if (_widgetDeletedEventHandler == null && WidgetDeletedSignal().Empty() == false)
239                 {
240                     WidgetDeletedSignal().Disconnect(_widgetDeletedEventCallback);
241                 }
242             }
243         }
244
245         // Callback for WidgetView WidgetDeleted signal
246         private void OnWidgetDeleted(IntPtr data)
247         {
248             WidgetViewEventArgs e = new WidgetViewEventArgs();
249             if(data != null)
250             {
251                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
252             }
253
254             if (_widgetDeletedEventHandler != null)
255             {
256                 _widgetDeletedEventHandler(this, e);
257             }
258         }
259
260         private EventHandler<WidgetViewEventArgs> _widgetCreationAbortedEventHandler;
261         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
262         private delegate void WidgetCreationAbortedEventCallbackType(IntPtr data);
263         private WidgetCreationAbortedEventCallbackType _widgetCreationAbortedEventCallback;
264
265         /// <summary>
266         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
267         /// This signal is emitted after all resources required by a control are loaded and ready.<br />
268         /// Most resources are only loaded when the control is placed on the stage.<br />
269         /// </summary>
270         /// <since_tizen> 4 </since_tizen>
271         public event EventHandler<WidgetViewEventArgs> WidgetCreationAborted
272         {
273             add
274             {
275                 if (_widgetCreationAbortedEventHandler == null)
276                 {
277                     _widgetCreationAbortedEventCallback = OnWidgetCreationAborted;
278                     WidgetCreationAbortedSignal().Connect(_widgetCreationAbortedEventCallback);
279                 }
280
281                 _widgetCreationAbortedEventHandler += value;
282             }
283
284             remove
285             {
286                 _widgetCreationAbortedEventHandler -= value;
287
288                 if (_widgetCreationAbortedEventHandler == null && WidgetCreationAbortedSignal().Empty() == false)
289                 {
290                     WidgetCreationAbortedSignal().Disconnect(_widgetCreationAbortedEventCallback);
291                 }
292             }
293         }
294
295         // Callback for WidgetView WidgetCreationAborted signal
296         private void OnWidgetCreationAborted(IntPtr data)
297         {
298             WidgetViewEventArgs e = new WidgetViewEventArgs();
299             if(data != null)
300             {
301                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
302             }
303
304             if (_widgetCreationAbortedEventHandler != null)
305             {
306                 _widgetCreationAbortedEventHandler(this, e);
307             }
308         }
309
310         private EventHandler<WidgetViewEventArgs> _widgetContentUpdatedEventHandler;
311         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
312         private delegate void WidgetContentUpdatedEventCallbackType(IntPtr data);
313         private WidgetContentUpdatedEventCallbackType _widgetContentUpdatedEventCallback;
314
315         /// <summary>
316         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
317         /// This signal is emitted after all resources required by a control are loaded and ready.<br />
318         /// Most resources are only loaded when the control is placed on the stage.<br />
319         /// </summary>
320         /// <since_tizen> 4 </since_tizen>
321         public event EventHandler<WidgetViewEventArgs> WidgetContentUpdated
322         {
323             add
324             {
325                 if (_widgetContentUpdatedEventHandler == null)
326                 {
327                     _widgetContentUpdatedEventCallback = OnWidgetContentUpdated;
328                     WidgetContentUpdatedSignal().Connect(_widgetContentUpdatedEventCallback);
329                 }
330
331                 _widgetContentUpdatedEventHandler += value;
332             }
333
334             remove
335             {
336                 _widgetContentUpdatedEventHandler -= value;
337
338                 if (_widgetContentUpdatedEventHandler == null && WidgetContentUpdatedSignal().Empty() == false)
339                 {
340                     WidgetContentUpdatedSignal().Disconnect(_widgetContentUpdatedEventCallback);
341                 }
342             }
343         }
344
345         // Callback for WidgetView WidgetContentUpdated signal
346         private void OnWidgetContentUpdated(IntPtr data)
347         {
348             WidgetViewEventArgs e = new WidgetViewEventArgs();
349             if(data != null)
350             {
351                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
352             }
353
354             if (_widgetContentUpdatedEventHandler != null)
355             {
356                 _widgetContentUpdatedEventHandler(this, e);
357             }
358         }
359
360         private EventHandler<WidgetViewEventArgs> _widgetUpdatePeriodChangedEventHandler;
361         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
362         private delegate void WidgetUpdatePeriodChangedEventCallbackType(IntPtr data);
363         private WidgetUpdatePeriodChangedEventCallbackType _widgetUpdatePeriodChangedEventCallback;
364
365         /// <summary>
366         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
367         /// This signal is emitted after all resources required by a control are loaded and ready.<br />
368         /// Most resources are only loaded when the control is placed on the stage.<br />
369         /// </summary>
370         /// <since_tizen> 4 </since_tizen>
371         public event EventHandler<WidgetViewEventArgs> WidgetUpdatePeriodChanged
372         {
373             add
374             {
375                 if (_widgetUpdatePeriodChangedEventHandler == null)
376                 {
377                     _widgetUpdatePeriodChangedEventCallback = OnWidgetUpdatePeriodChanged;
378                     WidgetUpdatePeriodChangedSignal().Connect(_widgetUpdatePeriodChangedEventCallback);
379                 }
380
381                 _widgetUpdatePeriodChangedEventHandler += value;
382             }
383
384             remove
385             {
386                 _widgetUpdatePeriodChangedEventHandler -= value;
387
388                 if (_widgetUpdatePeriodChangedEventHandler == null && WidgetUpdatePeriodChangedSignal().Empty() == false)
389                 {
390                     WidgetUpdatePeriodChangedSignal().Disconnect(_widgetUpdatePeriodChangedEventCallback);
391                 }
392             }
393         }
394
395         // Callback for WidgetView WidgetUpdatePeriodChanged signal
396         private void OnWidgetUpdatePeriodChanged(IntPtr data)
397         {
398             WidgetViewEventArgs e = new WidgetViewEventArgs();
399             if(data != null)
400             {
401                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
402             }
403
404             if (_widgetUpdatePeriodChangedEventHandler != null)
405             {
406                 _widgetUpdatePeriodChangedEventHandler(this, e);
407             }
408         }
409
410         private EventHandler<WidgetViewEventArgs> _widgetFaultedEventHandler;
411         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
412         private delegate void WidgetFaultedEventCallbackType(IntPtr data);
413         private WidgetFaultedEventCallbackType _widgetFaultedEventCallback;
414
415         /// <summary>
416         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
417         /// This signal is emitted after all resources required by a control are loaded and ready.<br />
418         /// Most resources are only loaded when the control is placed on the stage.<br />
419         /// </summary>
420         /// <since_tizen> 4 </since_tizen>
421         public event EventHandler<WidgetViewEventArgs> WidgetFaulted
422         {
423             add
424             {
425                 if (_widgetFaultedEventHandler == null)
426                 {
427                     _widgetFaultedEventCallback = OnWidgetFaulted;
428                     WidgetFaultedSignal().Connect(_widgetFaultedEventCallback);
429                 }
430
431                 _widgetFaultedEventHandler += value;
432             }
433
434             remove
435             {
436                 _widgetFaultedEventHandler -= value;
437
438                 if (_widgetFaultedEventHandler == null && WidgetFaultedSignal().Empty() == false)
439                 {
440                     WidgetFaultedSignal().Disconnect(_widgetFaultedEventCallback);
441                 }
442             }
443         }
444
445         // Callback for WidgetView WidgetFaulted signal
446         private void OnWidgetFaulted(IntPtr data)
447         {
448             WidgetViewEventArgs e = new WidgetViewEventArgs();
449             if(data != null)
450             {
451                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
452             }
453
454             if (_widgetFaultedEventHandler != null)
455             {
456                 _widgetFaultedEventHandler(this, e);
457             }
458         }
459
460         /// <summary>
461         /// Pauses a given widget.
462         /// </summary>
463         /// <returns>True on success, false otherwise.</returns>
464         /// <since_tizen> 4 </since_tizen>
465         public bool PauseWidget()
466         {
467             bool ret = NDalicManualPINVOKE.WidgetView_PauseWidget(swigCPtr);
468             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
469             return ret;
470         }
471
472         /// <summary>
473         /// Resumes a given widget.
474         /// </summary>
475         /// <returns>True on success, false otherwise.</returns>
476         /// <since_tizen> 4 </since_tizen>
477         public bool ResumeWidget()
478         {
479             bool ret = NDalicManualPINVOKE.WidgetView_ResumeWidget(swigCPtr);
480             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
481             return ret;
482         }
483
484         /// <summary>
485         /// Cancels the touch event procedure.
486         /// If you call this function after feed the touch down event, the widget will get ON_HOLD events.
487        ///  If a widget gets ON_HOLD event, it will not do anything even if you feed touch up event.
488         /// </summary>
489         /// <returns>True on success, false otherwise.</returns>
490         /// <since_tizen> 4 </since_tizen>
491         public bool CancelTouchEvent()
492         {
493             bool ret = NDalicManualPINVOKE.WidgetView_CancelTouchEvent(swigCPtr);
494             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
495             return ret;
496         }
497
498         /// <summary>
499         /// Activates a widget in the faulted state.
500         /// A widget in faulted state must be activated before adding the widget.
501         /// </summary>
502         /// <since_tizen> 4 </since_tizen>
503         public void ActivateFaultedWidget()
504         {
505             NDalicManualPINVOKE.WidgetView_ActivateFaultedWidget(swigCPtr);
506             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
507         }
508
509         /// <summary>
510         /// Terminate a widget instance.
511         /// </summary>
512         /// <returns>True on success, false otherwise</returns>
513         public bool TerminateWidget()
514         {
515             bool ret = NDalicManualPINVOKE.WidgetView_TerminateWidget(swigCPtr);
516             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
517             return ret;
518         }
519
520         internal WidgetViewSignal WidgetAddedSignal()
521         {
522             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetAddedSignal(swigCPtr), false);
523             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
524             return ret;
525         }
526
527         internal WidgetViewSignal WidgetDeletedSignal()
528         {
529             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetDeletedSignal(swigCPtr), false);
530             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
531             return ret;
532         }
533
534         internal WidgetViewSignal WidgetCreationAbortedSignal()
535         {
536             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetCreationAbortedSignal(swigCPtr), false);
537             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
538             return ret;
539         }
540
541         internal WidgetViewSignal WidgetContentUpdatedSignal()
542         {
543             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetContentUpdatedSignal(swigCPtr), false);
544             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
545             return ret;
546         }
547
548         internal WidgetViewSignal WidgetUpdatePeriodChangedSignal()
549         {
550             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetUpdatePeriodChangedSignal(swigCPtr), false);
551             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
552             return ret;
553         }
554
555         internal WidgetViewSignal WidgetFaultedSignal()
556         {
557             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetFaultedSignal(swigCPtr), false);
558             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
559             return ret;
560         }
561
562         /// <summary>
563         /// Gets the ID of the widget.
564         /// </summary>
565         /// <since_tizen> 4 </since_tizen>
566         public string WidgetID
567         {
568             get
569             {
570                 string temp;
571                 GetProperty(WidgetView.Property.WIDGET_ID).Get(out temp);
572                 return temp;
573             }
574         }
575
576         /// <summary>
577         /// Gets the ID of the instance.
578         /// </summary>
579         /// <since_tizen> 4 </since_tizen>
580         public string InstanceID
581         {
582             get
583             {
584                 string temp;
585                 GetProperty(WidgetView.Property.INSTANCE_ID).Get(out temp);
586                 return temp;
587             }
588         }
589
590         /// <summary>
591         /// Gets the content info.
592         /// </summary>
593         /// <since_tizen> 4 </since_tizen>
594         public string ContentInfo
595         {
596             get
597             {
598                 string temp;
599                 GetProperty(WidgetView.Property.CONTENT_INFO).Get(out temp);
600                 return temp;
601             }
602         }
603
604         /// <summary>
605         /// Gets the title.
606         /// </summary>
607         /// <since_tizen> 4 </since_tizen>
608         public string Title
609         {
610             get
611             {
612                 string temp;
613                 GetProperty(WidgetView.Property.TITLE).Get(out temp);
614                 return temp;
615             }
616         }
617
618         /// <summary>
619         /// Gets the update peroid.
620         /// </summary>
621         /// <since_tizen> 4 </since_tizen>
622         public float UpdatePeriod
623         {
624             get
625             {
626                 float temp;
627                 GetProperty(WidgetView.Property.UPDATE_PERIOD).Get(out temp);
628                 return temp;
629             }
630         }
631
632         /// <summary>
633         /// Gets or sets the preview.
634         /// </summary>
635         /// <since_tizen> 4 </since_tizen>
636         public bool Preview
637         {
638             get
639             {
640                 bool temp;
641                 GetProperty(WidgetView.Property.PREVIEW).Get(out temp);
642                 return temp;
643             }
644             set
645             {
646                 SetProperty(WidgetView.Property.PREVIEW, new Tizen.NUI.PropertyValue(value));
647             }
648         }
649
650         /// <summary>
651         /// Gets or sets the loading text.
652         /// </summary>
653         /// <since_tizen> 4 </since_tizen>
654         public bool LoadingText
655         {
656             get
657             {
658                 bool temp;
659                 GetProperty(WidgetView.Property.LOADING_TEXT).Get(out temp);
660                 return temp;
661             }
662             set
663             {
664                 SetProperty(WidgetView.Property.LOADING_TEXT, new Tizen.NUI.PropertyValue(value));
665             }
666         }
667
668         /// <summary>
669         /// Gets or sets whether the widget state is faulted or not.
670         /// </summary>
671         /// <since_tizen> 4 </since_tizen>
672         public bool WidgetStateFaulted
673         {
674             get
675             {
676                 bool temp;
677                 GetProperty(WidgetView.Property.WIDGET_STATE_FAULTED).Get(out temp);
678                 return temp;
679             }
680             set
681             {
682                 SetProperty(WidgetView.Property.WIDGET_STATE_FAULTED, new Tizen.NUI.PropertyValue(value));
683             }
684         }
685
686         /// <summary>
687         /// Gets or sets whether the widget is to delete permanently or not.
688         /// </summary>
689         /// <since_tizen> 4 </since_tizen>
690         public bool PermanentDelete
691         {
692             get
693             {
694                 bool temp;
695                 GetProperty(WidgetView.Property.PERMANENT_DELETE).Get(out temp);
696                 return temp;
697             }
698             set
699             {
700                 SetProperty(WidgetView.Property.PERMANENT_DELETE, new Tizen.NUI.PropertyValue(value));
701             }
702         }
703
704         /// <summary>
705         /// Gets or sets retry text.
706         /// </summary>
707         public PropertyMap RetryText
708         {
709             get
710             {
711                 PropertyMap temp = new PropertyMap();
712                 GetProperty(WidgetView.Property.RETRY_TEXT).Get(temp);
713                 return temp;
714             }
715             set
716             {
717                 SetProperty(WidgetView.Property.RETRY_TEXT, new Tizen.NUI.PropertyValue(value));
718             }
719         }
720
721         /// <summary>
722         /// Gets or sets effect.
723         /// </summary>
724         public PropertyMap Effect
725         {
726             get
727             {
728                 PropertyMap temp = new PropertyMap();
729                 GetProperty(WidgetView.Property.EFFECT).Get(temp);
730                 return temp;
731             }
732             set
733             {
734                 SetProperty(WidgetView.Property.EFFECT, new Tizen.NUI.PropertyValue(value));
735             }
736         }
737
738     }
739
740 }