2 using System.Collections.Generic;
5 namespace Tizen.Applications.ComponentBased.Common
8 /// The class for showing service module
10 /// <since_tizen> 6 </since_tizen>
11 public abstract class ServiceComponent : BaseComponent
14 /// Overrides this method to handle behavior when the component is created.
16 /// <returns>True if a service component is successfully created</returns>
17 public abstract bool OnCreate();
20 /// Overrides this method if want to handle behavior when the component receives the start command message.
22 /// <param name="appControl">appcontrol object</param>
23 /// <param name="restarted">True if it was restarted</param>
24 /// <since_tizen> 6 </since_tizen>
25 public virtual void OnStartCommand(AppControl appControl, bool restarted)
30 /// Overrides this method if want to handle behavior when the component is destroyed.
32 /// <since_tizen> 6 </since_tizen>
33 public virtual void OnDestroy()