2 using System.Collections.Generic;
3 using System.ComponentModel;
5 using Tizen.Applications;
6 using Tizen.Applications.ComponentBased.Common;
12 /// The class for showing UI module
14 /// <since_tizen> 6 </since_tizen>
15 [EditorBrowsable(EditorBrowsableState.Never)]
16 public class NUIFrameComponent : FrameComponent
18 internal NUIWindowInfo NUIWindowInfo
24 [EditorBrowsable(EditorBrowsableState.Never)]
32 /// Overrides this method to create window. It will be called before OnCreate method.
34 /// <returns>Window object to use</returns>
35 [EditorBrowsable(EditorBrowsableState.Never)]
36 public override IWindowInfo CreateWindowInfo()
38 ComponentApplication instance = ComponentApplication.Instance as ComponentApplication;
41 instance.RegisterFrameComponent(this);
42 if(instance.GetFrameComponentCount() == 1)
44 Window = instance.GetWindow();
48 Window = new Window();
51 NUIWindowInfo = new NUIWindowInfo(Window);
56 /// Overrides this method to handle behavior when the component is launched.
58 /// <returns>True if a service component is successfully created</returns>
59 [EditorBrowsable(EditorBrowsableState.Never)]
60 public override bool OnCreate()
66 /// Overrides this method if want to handle behavior when the component receives the appcontrol message.
68 /// <param name="appControl">appcontrol object</param>
69 /// <param name="restarted">True if it was restarted</param>
70 [EditorBrowsable(EditorBrowsableState.Never)]
71 public override void OnStart(AppControl appControl, bool restarted)
73 base.OnStart(appControl, restarted);
77 /// Overrides this method if you want to handle the behavior when the component is resumed.
79 [EditorBrowsable(EditorBrowsableState.Never)]
80 public override void OnResume()
86 /// Overrides this method if you want to handle the behavior when the component is paused.
88 [EditorBrowsable(EditorBrowsableState.Never)]
89 public override void OnPause()
95 /// Overrides this method if you want to handle the behavior when the component is stopped.
97 [EditorBrowsable(EditorBrowsableState.Never)]
98 public override void OnStop()
104 /// Overrides this method if want to handle behavior when the component is destroyed.
106 [EditorBrowsable(EditorBrowsableState.Never)]
107 public override void OnDestroy()