Class ServiceComponent

Definition

Namespace:
Tizen.Applications.ComponentBased.Common
Assembly:
Tizen.Applications.ComponentBased.dll

Represents a base class for service components in the component-based application model. This class provides methods for handling the lifecycle and state of service components.

C#
Copy
public abstract class ServiceComponent : BaseComponent
Inheritance
object
ServiceComponent

Methods

View Source

OnCreate()

Called when the service component is created. Override this method to implement custom creation behavior.

Declaration
C#
Copy
public abstract bool OnCreate()
Returns
Type Description
bool

true if the service component is successfully created; otherwise, false.

View Source

OnDestroy()

Called when the service component is destroyed. Override this method to handle destruction behavior.

Declaration
C#
Copy
public virtual void OnDestroy()
View Source

OnStartCommand(AppControl, bool)

Called when the service component receives a start command message. Override this method to handle start command behavior.

Declaration
C#
Copy
public virtual void OnStartCommand(AppControl appControl, bool restarted)
Parameters
Type Name Description
AppControl appControl

The AppControl object containing the app control data.

bool restarted

true if the component was restarted; otherwise, false.