2 * Copyright(c) 2021 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 using System.ComponentModel;
22 using System.Runtime.InteropServices;
23 using Tizen.NUI.BaseComponents;
26 /// The WidgetView is a class for displaying the widget image and controlling the widget.<br />
27 /// Input events that the WidgetView gets are delivered to the widget.
29 /// <since_tizen> 3 </since_tizen>
30 public class WidgetView : View
32 private EventHandler<WidgetViewEventArgs> widgetAddedEventHandler;
33 private WidgetAddedEventCallbackType widgetAddedEventCallback;
34 private EventHandler<WidgetViewEventArgs> widgetContentUpdatedEventHandler;
35 private WidgetContentUpdatedEventCallbackType widgetContentUpdatedEventCallback;
36 private EventHandler<WidgetViewEventArgs> widgetDeletedEventHandler;
37 private WidgetDeletedEventCallbackType widgetDeletedEventCallback;
38 private EventHandler<WidgetViewEventArgs> widgetCreationAbortedEventHandler;
39 private WidgetCreationAbortedEventCallbackType widgetCreationAbortedEventCallback;
40 private EventHandler<WidgetViewEventArgs> widgetUpdatePeriodChangedEventHandler;
41 private WidgetUpdatePeriodChangedEventCallbackType widgetUpdatePeriodChangedEventCallback;
42 private EventHandler<WidgetViewEventArgs> widgetFaultedEventHandler;
43 private WidgetFaultedEventCallbackType widgetFaultedEventCallback;
46 /// Used in xaml as factory method to create WidgetView.
48 /// <param name="widgetId"></param>
49 /// <param name="contentInfo"></param>
50 /// <param name="width"></param>
51 /// <param name="height"></param>
52 /// <param name="updatePeriod"></param>
53 /// <returns></returns>
54 [EditorBrowsable(EditorBrowsableState.Never)]
55 public static WidgetView CreateWidgetView(string widgetId, string contentInfo, int width, int height, float updatePeriod)
57 return WidgetViewManager.Instance.AddWidget(widgetId, contentInfo, width, height, updatePeriod);
61 /// Creates a new WidgetView.
63 /// <since_tizen> 3 </since_tizen>
64 public WidgetView(string widgetId, string contentInfo, int width, int height, float updatePeriod) : this(Interop.WidgetView.New(widgetId, contentInfo, width, height, updatePeriod), true)
66 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
70 internal WidgetView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
73 internal WidgetView(WidgetView handle) : this(Interop.WidgetView.NewWidgetView(WidgetView.getCPtr(handle)), true)
75 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
78 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
79 private delegate void WidgetAddedEventCallbackType(IntPtr data);
80 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
81 private delegate void WidgetContentUpdatedEventCallbackType(IntPtr data);
82 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
83 private delegate void WidgetDeletedEventCallbackType(IntPtr data);
84 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
85 private delegate void WidgetCreationAbortedEventCallbackType(IntPtr data);
86 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
87 private delegate void WidgetUpdatePeriodChangedEventCallbackType(IntPtr data);
88 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
89 private delegate void WidgetFaultedEventCallbackType(IntPtr data);
92 /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
93 /// This signal is emitted after all resources required by a control are loaded and ready.<br />
94 /// Most resources are only loaded when the control is placed on the stage.<br />
96 /// <since_tizen> 3 </since_tizen>
97 public event EventHandler<WidgetViewEventArgs> WidgetAdded
101 if (widgetAddedEventHandler == null)
103 widgetAddedEventCallback = OnWidgetAdded;
104 WidgetViewSignal widgetAdded = WidgetAddedSignal();
105 widgetAdded?.Connect(widgetAddedEventCallback);
106 widgetAdded?.Dispose();
109 widgetAddedEventHandler += value;
114 widgetAddedEventHandler -= value;
116 WidgetViewSignal widgetAdded = WidgetAddedSignal();
117 if (widgetAddedEventHandler == null && widgetAdded?.Empty() == false)
119 widgetAdded?.Disconnect(widgetAddedEventCallback);
121 widgetAdded?.Dispose();
126 /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
127 /// This signal is emitted after all resources required by a control are loaded and ready.<br />
128 /// Most resources are only loaded when the control is placed on the stage.<br />
130 /// <since_tizen> 3 </since_tizen>
131 public event EventHandler<WidgetViewEventArgs> WidgetContentUpdated
135 if (widgetContentUpdatedEventHandler == null)
137 widgetContentUpdatedEventCallback = OnWidgetContentUpdated;
138 WidgetViewSignal widgetContentUpdated = WidgetContentUpdatedSignal();
139 widgetContentUpdated?.Connect(widgetContentUpdatedEventCallback);
140 widgetContentUpdated?.Dispose();
143 widgetContentUpdatedEventHandler += value;
148 widgetContentUpdatedEventHandler -= value;
150 WidgetViewSignal widgetContentUpdated = WidgetContentUpdatedSignal();
151 if (widgetContentUpdatedEventHandler == null && widgetContentUpdated?.Empty() == false)
153 widgetContentUpdated?.Disconnect(widgetContentUpdatedEventCallback);
155 widgetContentUpdated?.Dispose();
160 /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
161 /// This signal is emitted after all resources required by a control are loaded and ready.<br />
162 /// Most resources are only loaded when the control is placed on the stage.<br />
164 /// <since_tizen> 3 </since_tizen>
165 public event EventHandler<WidgetViewEventArgs> WidgetDeleted
169 if (widgetDeletedEventHandler == null)
171 widgetDeletedEventCallback = OnWidgetDeleted;
172 WidgetViewSignal widgetDeleted = WidgetDeletedSignal();
173 widgetDeleted?.Connect(widgetDeletedEventCallback);
174 widgetDeleted?.Dispose();
177 widgetDeletedEventHandler += value;
182 widgetDeletedEventHandler -= value;
184 WidgetViewSignal widgetDeleted = WidgetDeletedSignal();
185 if (widgetDeletedEventHandler == null && widgetDeleted?.Empty() == false)
187 widgetDeleted?.Disconnect(widgetDeletedEventCallback);
189 widgetDeleted?.Dispose();
194 /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
195 /// This signal is emitted after all resources required by a control are loaded and ready.<br />
196 /// Most resources are only loaded when the control is placed on the stage.<br />
198 /// <since_tizen> 3 </since_tizen>
199 public event EventHandler<WidgetViewEventArgs> WidgetCreationAborted
203 if (widgetCreationAbortedEventHandler == null)
205 widgetCreationAbortedEventCallback = OnWidgetCreationAborted;
206 WidgetViewSignal widgetCreationAborted = WidgetCreationAbortedSignal();
207 widgetCreationAborted?.Connect(widgetCreationAbortedEventCallback);
208 widgetCreationAborted?.Dispose();
211 widgetCreationAbortedEventHandler += value;
216 widgetCreationAbortedEventHandler -= value;
218 WidgetViewSignal widgetCreationAborted = WidgetCreationAbortedSignal();
219 if (widgetCreationAbortedEventHandler == null && widgetCreationAborted?.Empty() == false)
221 widgetCreationAborted?.Disconnect(widgetCreationAbortedEventCallback);
223 widgetCreationAborted?.Dispose();
228 /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
229 /// This signal is emitted after all resources required by a control are loaded and ready.<br />
230 /// Most resources are only loaded when the control is placed on the stage.<br />
232 /// <since_tizen> 3 </since_tizen>
233 public event EventHandler<WidgetViewEventArgs> WidgetUpdatePeriodChanged
237 if (widgetUpdatePeriodChangedEventHandler == null)
239 widgetUpdatePeriodChangedEventCallback = OnWidgetUpdatePeriodChanged;
240 WidgetViewSignal widgetUpdatePeriodChanged = WidgetUpdatePeriodChangedSignal();
241 widgetUpdatePeriodChanged?.Connect(widgetUpdatePeriodChangedEventCallback);
242 widgetUpdatePeriodChanged?.Dispose();
245 widgetUpdatePeriodChangedEventHandler += value;
250 widgetUpdatePeriodChangedEventHandler -= value;
252 WidgetViewSignal widgetUpdatePeriodChanged = WidgetUpdatePeriodChangedSignal();
253 if (widgetUpdatePeriodChangedEventHandler == null && widgetUpdatePeriodChanged?.Empty() == false)
255 widgetUpdatePeriodChanged?.Disconnect(widgetUpdatePeriodChangedEventCallback);
257 widgetUpdatePeriodChanged?.Dispose();
262 /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
263 /// This signal is emitted after all resources required by a control are loaded and ready.<br />
264 /// Most resources are only loaded when the control is placed on the stage.<br />
266 /// <since_tizen> 3 </since_tizen>
267 public event EventHandler<WidgetViewEventArgs> WidgetFaulted
271 if (widgetFaultedEventHandler == null)
273 widgetFaultedEventCallback = OnWidgetFaulted;
274 WidgetViewSignal widgetFaulted = WidgetFaultedSignal();
275 widgetFaulted?.Connect(widgetFaultedEventCallback);
276 widgetFaulted?.Dispose();
279 widgetFaultedEventHandler += value;
284 widgetFaultedEventHandler -= value;
286 WidgetViewSignal widgetFaulted = WidgetFaultedSignal();
287 if (widgetFaultedEventHandler == null && widgetFaulted?.Empty() == false)
289 widgetFaulted?.Disconnect(widgetFaultedEventCallback);
291 widgetFaulted?.Dispose();
296 /// Gets the ID of the widget.
298 /// <since_tizen> 3 </since_tizen>
299 public string WidgetID
303 string retValue = "";
304 PropertyValue widgetId = GetProperty(WidgetView.Property.WidgetId);
305 widgetId?.Get(out retValue);
312 /// Gets the ID of the instance.
314 /// <since_tizen> 3 </since_tizen>
315 public string InstanceID
319 string retValue = "";
320 PropertyValue instanceId = GetProperty(WidgetView.Property.InstanceId);
321 instanceId?.Get(out retValue);
322 instanceId?.Dispose();
328 /// Gets the content info.
330 /// <since_tizen> 3 </since_tizen>
331 public string ContentInfo
335 string retValue = "";
336 PropertyValue contentInfo = GetProperty(WidgetView.Property.ContentInfo);
337 contentInfo?.Get(out retValue);
338 contentInfo?.Dispose();
346 /// <since_tizen> 3 </since_tizen>
351 string retValue = "";
352 PropertyValue title = GetProperty(WidgetView.Property.TITLE);
353 title?.Get(out retValue);
360 /// Gets the update period.
362 /// <since_tizen> 3 </since_tizen>
363 public float UpdatePeriod
368 PropertyValue updatePeriod = GetProperty(WidgetView.Property.UpdatePeriod);
369 updatePeriod?.Get(out retValue);
370 updatePeriod?.Dispose();
376 /// Gets or sets the preview.
378 /// <since_tizen> 3 </since_tizen>
383 bool retValue = false;
384 PropertyValue preview = GetProperty(WidgetView.Property.PREVIEW);
385 preview?.Get(out retValue);
391 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
392 SetProperty(WidgetView.Property.PREVIEW, setValue);
398 /// Gets or sets the loading text.
400 /// <since_tizen> 3 </since_tizen>
401 public bool LoadingText
405 bool retValue = false;
406 PropertyValue loadingText = GetProperty(WidgetView.Property.LoadingText);
407 loadingText?.Get(out retValue);
408 loadingText?.Dispose();
413 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
414 SetProperty(WidgetView.Property.LoadingText, setValue);
420 /// Gets or sets whether the widget state is faulted or not.
422 /// <since_tizen> 3 </since_tizen>
423 public bool WidgetStateFaulted
427 bool retValue = false;
428 PropertyValue widgetStateFaulted = GetProperty(WidgetView.Property.WidgetStateFaulted);
429 widgetStateFaulted?.Get(out retValue);
430 widgetStateFaulted?.Dispose();
435 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
436 SetProperty(WidgetView.Property.WidgetStateFaulted, setValue);
442 /// Gets or sets whether the widget is to delete permanently or not.
444 /// <since_tizen> 3 </since_tizen>
445 public bool PermanentDelete
449 bool retValue = false;
450 PropertyValue permanentDelete = GetProperty(WidgetView.Property.PermanentDelete);
451 permanentDelete?.Get(out retValue);
452 permanentDelete?.Dispose();
457 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
458 SetProperty(WidgetView.Property.PermanentDelete, setValue);
464 /// Gets or sets retry text.
466 /// <since_tizen> 4 </since_tizen>
467 public PropertyMap RetryText
471 PropertyMap retValue = new PropertyMap();
472 PropertyValue retryText = GetProperty(WidgetView.Property.RetryText);
473 retryText?.Get(retValue);
474 retryText?.Dispose();
479 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
480 SetProperty(WidgetView.Property.RetryText, setValue);
486 /// Gets or sets effect.
488 /// <since_tizen> 4 </since_tizen>
489 public PropertyMap Effect
493 PropertyMap retValue = new PropertyMap();
494 PropertyValue effect = GetProperty(WidgetView.Property.EFFECT);
495 effect?.Get(retValue);
501 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
502 SetProperty(WidgetView.Property.EFFECT, setValue);
508 /// Pauses a given widget.
510 /// <returns>True on success, false otherwise.</returns>
511 /// <since_tizen> 3 </since_tizen>
512 public bool PauseWidget()
514 bool ret = Interop.WidgetView.PauseWidget(SwigCPtr);
515 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
520 /// Resumes a given widget.
522 /// <returns>True on success, false otherwise.</returns>
523 /// <since_tizen> 3 </since_tizen>
524 public bool ResumeWidget()
526 bool ret = Interop.WidgetView.ResumeWidget(SwigCPtr);
527 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
532 /// Cancels the touch event procedure.
533 /// If you call this function after feed the touch down event, the widget will get ON_HOLD events.
534 /// If a widget gets ON_HOLD event, it will not do anything even if you feed touch up event.
536 /// <returns>True on success, false otherwise.</returns>
537 /// <since_tizen> 3 </since_tizen>
538 public bool CancelTouchEvent()
540 bool ret = Interop.WidgetView.CancelTouchEvent(SwigCPtr);
541 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
546 /// Activates a widget in the faulted state.
547 /// A widget in faulted state must be activated before adding the widget.
549 /// <since_tizen> 3 </since_tizen>
550 public void ActivateFaultedWidget()
552 Interop.WidgetView.ActivateFaultedWidget(SwigCPtr);
553 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
557 /// Terminate a widget instance.
559 /// <returns>True on success, false otherwise</returns>
560 /// <since_tizen> 4 </since_tizen>
561 public bool TerminateWidget()
563 bool ret = Interop.WidgetView.TerminateWidget(SwigCPtr);
564 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
568 internal static WidgetView DownCast(BaseHandle handle)
570 WidgetView ret = new WidgetView(Interop.WidgetView.DownCast(BaseHandle.getCPtr(handle)), true);
571 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
575 internal static WidgetView GetWidgetViewFromPtr(global::System.IntPtr cPtr)
577 WidgetView ret = new WidgetView(cPtr, false);
578 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
582 internal WidgetView Assign(WidgetView handle)
584 WidgetView ret = new WidgetView(Interop.WidgetView.Assign(SwigCPtr, WidgetView.getCPtr(handle)), false);
585 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
589 internal WidgetViewSignal WidgetAddedSignal()
591 WidgetViewSignal ret = new WidgetViewSignal(Interop.WidgetView.WidgetAddedSignal(SwigCPtr), false);
592 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
596 internal WidgetViewSignal WidgetDeletedSignal()
598 WidgetViewSignal ret = new WidgetViewSignal(Interop.WidgetView.WidgetDeletedSignal(SwigCPtr), false);
599 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
603 internal WidgetViewSignal WidgetCreationAbortedSignal()
605 WidgetViewSignal ret = new WidgetViewSignal(Interop.WidgetView.WidgetCreationAbortedSignal(SwigCPtr), false);
606 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
610 internal WidgetViewSignal WidgetContentUpdatedSignal()
612 WidgetViewSignal ret = new WidgetViewSignal(Interop.WidgetView.WidgetContentUpdatedSignal(SwigCPtr), false);
613 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
617 internal WidgetViewSignal WidgetUpdatePeriodChangedSignal()
619 WidgetViewSignal ret = new WidgetViewSignal(Interop.WidgetView.WidgetUpdatePeriodChangedSignal(SwigCPtr), false);
620 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
624 internal WidgetViewSignal WidgetFaultedSignal()
626 WidgetViewSignal ret = new WidgetViewSignal(Interop.WidgetView.WidgetFaultedSignal(SwigCPtr), false);
627 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
632 /// To make the Button instance be disposed.
634 /// <since_tizen> 3 </since_tizen>
635 protected override void Dispose(DisposeTypes type)
642 //Release your own unmanaged resources here.
643 //You should not access any managed member here except static instance.
644 //because the execution order of Finalizes is non-deterministic.
646 if (widgetAddedEventCallback != null)
648 WidgetViewSignal widgetAdded = this.WidgetAddedSignal();
649 widgetAdded?.Disconnect(widgetAddedEventCallback);
650 widgetAdded?.Dispose();
653 if (widgetContentUpdatedEventCallback != null)
655 WidgetViewSignal widgetContentUpdated = this.WidgetContentUpdatedSignal();
656 widgetContentUpdated?.Disconnect(widgetContentUpdatedEventCallback);
657 widgetContentUpdated?.Dispose();
660 if (widgetCreationAbortedEventCallback != null)
662 WidgetViewSignal widgetCreationAborted = this.WidgetCreationAbortedSignal();
663 widgetCreationAborted?.Disconnect(widgetCreationAbortedEventCallback);
664 widgetCreationAborted?.Dispose();
667 if (widgetDeletedEventCallback != null)
669 WidgetViewSignal widgetDeleted = this.WidgetDeletedSignal();
670 widgetDeleted?.Disconnect(widgetDeletedEventCallback);
671 widgetDeleted?.Dispose();
674 if (widgetFaultedEventCallback != null)
676 WidgetViewSignal widgetFaulted = this.WidgetFaultedSignal();
677 widgetFaulted?.Disconnect(widgetFaultedEventCallback);
678 widgetFaulted?.Dispose();
681 if (widgetUpdatePeriodChangedEventCallback != null)
683 WidgetViewSignal widgetUpdatePeriodChanged = this.WidgetUpdatePeriodChangedSignal();
684 widgetUpdatePeriodChanged?.Disconnect(widgetUpdatePeriodChangedEventCallback);
685 widgetUpdatePeriodChanged?.Dispose();
691 /// This will not be public opened.
692 [EditorBrowsable(EditorBrowsableState.Never)]
693 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
695 Interop.WidgetView.DeleteWidgetView(swigCPtr);
698 // Callback for WidgetView WidgetAdded signal
699 private void OnWidgetAdded(IntPtr data)
701 WidgetViewEventArgs e = new WidgetViewEventArgs();
704 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
707 if (widgetAddedEventHandler != null)
709 widgetAddedEventHandler(this, e);
713 // Callback for WidgetView WidgetDeleted signal
714 private void OnWidgetDeleted(IntPtr data)
716 WidgetViewEventArgs e = new WidgetViewEventArgs();
719 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
722 if (widgetDeletedEventHandler != null)
724 widgetDeletedEventHandler(this, e);
728 // Callback for WidgetView WidgetCreationAborted signal
729 private void OnWidgetCreationAborted(IntPtr data)
731 WidgetViewEventArgs e = new WidgetViewEventArgs();
734 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
737 if (widgetCreationAbortedEventHandler != null)
739 widgetCreationAbortedEventHandler(this, e);
745 // Callback for WidgetView WidgetContentUpdated signal
746 private void OnWidgetContentUpdated(IntPtr data)
748 WidgetViewEventArgs e = new WidgetViewEventArgs();
751 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
754 if (widgetContentUpdatedEventHandler != null)
756 widgetContentUpdatedEventHandler(this, e);
760 // Callback for WidgetView WidgetUpdatePeriodChanged signal
761 private void OnWidgetUpdatePeriodChanged(IntPtr data)
763 WidgetViewEventArgs e = new WidgetViewEventArgs();
766 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
769 if (widgetUpdatePeriodChangedEventHandler != null)
771 widgetUpdatePeriodChangedEventHandler(this, e);
775 // Callback for WidgetView WidgetFaulted signal
776 private void OnWidgetFaulted(IntPtr data)
778 WidgetViewEventArgs e = new WidgetViewEventArgs();
781 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
784 if (widgetFaultedEventHandler != null)
786 widgetFaultedEventHandler(this, e);
791 /// Event arguments of the widget view.
793 /// <since_tizen> 3 </since_tizen>
794 public class WidgetViewEventArgs : EventArgs
796 private WidgetView _widgetView;
801 /// <since_tizen> 3 </since_tizen>
802 public WidgetView WidgetView
815 internal new class Property
817 internal static readonly int WidgetId = Interop.WidgetView.WidgetIdGet();
818 internal static readonly int InstanceId = Interop.WidgetView.InstanceIdGet();
819 internal static readonly int ContentInfo = Interop.WidgetView.ContentInfoGet();
820 internal static readonly int TITLE = Interop.WidgetView.TitleGet();
821 internal static readonly int UpdatePeriod = Interop.WidgetView.UpdatePeriodGet();
822 internal static readonly int PREVIEW = Interop.WidgetView.PreviewGet();
823 internal static readonly int LoadingText = Interop.WidgetView.LoadingTextGet();
824 internal static readonly int WidgetStateFaulted = Interop.WidgetView.WidgetStateFaultedGet();
825 internal static readonly int PermanentDelete = Interop.WidgetView.PermanentDeleteGet();
826 internal static readonly int RetryText = Interop.WidgetView.RetryTextGet();
827 internal static readonly int EFFECT = Interop.WidgetView.EffectGet();
830 [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use WidgetId instead!")]
831 internal static readonly int WIDGET_ID = Interop.WidgetView.WidgetIdGet();
832 [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use ContentInfo instead!")]
833 internal static readonly int CONTENT_INFO = Interop.WidgetView.ContentInfoGet();
834 [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use UpdatePeriod instead!")]
835 internal static readonly int UPDATE_PERIOD = Interop.WidgetView.UpdatePeriodGet();
836 [Obsolete("Please do not use this! Deprecated in API9, will be removed in API11! Please use LoadingText instead!")]
837 internal static readonly int LOADING_TEXT = Interop.WidgetView.LoadingTextGet();