Class ComponentTask

    Definition

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

    Provides a task class for the ComponentPort class. This is a convenience class to manage ComponentPort communication in a separate thread.

    public class ComponentTask
    Inheritance
    object
    ComponentTask

    Constructors

    View Source

    ComponentTask(ComponentPort)

    Initializes the instance of the ComponentTask class.

    Declaration
    public ComponentTask(ComponentPort port)
    Parameters
    Type Name Description
    ComponentPort port

    The component port object

    Properties

    View Source

    IsRunning

    Checks whether the component task is running.

    Declaration
    public bool IsRunning { get; }
    Property Value
    Type Description
    bool

    If the task is running, true; otherwise, false

    View Source

    Port

    Gets the component port.

    Declaration
    public ComponentPort Port { get; }
    Property Value
    Type Description
    ComponentPort

    The instance of the component port

    Methods

    View Source

    Start()

    Starts the task.

    Declaration
    public void Start()
    Remarks

    This method calls WaitForEvent() in the thread.

    View Source

    Stop()

    Stops the task.

    Declaration
    public void Stop()
    Remarks

    This method calls Cancel() before stopping the thread.

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