Class ComponentTask

Definition

Namespace:
Tizen.Applications.ComponentBased
Assembly:
Tizen.Applications.ComponentBased.Port.dll
API Level:
9

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

C#
Copy
public class ComponentTask
Inheritance
System.Object
ComponentTask

Constructors

View Source

ComponentTask(ComponentPort)

Initializes the instance of the ComponentTask class.

Declaration
C#
Copy
public ComponentTask(ComponentPort port)
Parameters
Type Name Description
ComponentPort port

The component port object

API Level: 9

Properties

View Source

IsRunning

Checks whether the component task is running.

Declaration
C#
Copy
public bool IsRunning { get; }
Property Value
Type Description
Boolean

If the task is running, true; otherwise, false

API Level: 9
View Source

Port

Gets the component port.

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

The instance of the component port

API Level: 9

Methods

View Source

Start()

Starts the task. This method calls ComponentPort.WaitForEvent() in the thread.

Declaration
C#
Copy
public void Start()
API Level: 9
View Source

Stop()

Stops the task.

Declaration
C#
Copy
public void Stop()
Remarks

This method calls ComponentPort.Cancel() before stopping the thread.

API Level: 9