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.
public abstract class ServiceComponent : BaseComponent
- Inheritance
Methods
View SourceOnCreate()
Called when the service component is created. Override this method to implement custom creation behavior.
Declaration
public abstract bool OnCreate()
Returns
Type | Description |
---|---|
bool |
|
OnDestroy()
Called when the service component is destroyed. Override this method to handle destruction behavior.
Declaration
public virtual void OnDestroy()
OnStartCommand(AppControl, bool)
Called when the service component receives a start command message. Override this method to handle start command behavior.
Declaration
public virtual void OnStartCommand(AppControl appControl, bool restarted)
Parameters
Type | Name | Description |
---|---|---|
AppControl | appControl | The AppControl object containing the app control data. |
bool | restarted |
|