Search Results for

    Show / Hide Table of Contents

    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.

    [Obsolete("This has been deprecated in API14")]
    public abstract class ServiceComponent : BaseComponent
    Inheritance
    object
    BaseComponent
    ServiceComponent

    Methods

    View Source

    OnCreate()

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

    Declaration
    [Obsolete("This has been deprecated in API14")]
    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
    [Obsolete("This has been deprecated in API14")]
    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
    [Obsolete("This has been deprecated in API14")]
    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.

    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX