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.
C#Copypublic class ComponentTask
- Inheritance
-
objectComponentTask
Constructors
Declaration
C#Copypublic ComponentTask(ComponentPort port)
Parameters
Type | Name | Description |
---|---|---|
ComponentPort | port | The component port object |
Properties
Declaration
C#Copypublic bool IsRunning { get; }
Property Value
Type | Description |
---|---|
bool | If the task is running, true; otherwise, false |
Declaration
C#Copypublic ComponentPort Port { get; }
Property Value
Type | Description |
---|---|
ComponentPort | The instance of the component port |
Methods
Declaration
C#Copypublic void Start()
Declaration
C#Copypublic void Stop()
Remarks
This method calls ComponentPort.Cancel() before stopping the thread.