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
-
objectComponentTask
Constructors
View SourceComponentTask(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 SourceIsRunning
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 |
Port
Gets the component port.
Declaration
public ComponentPort Port { get; }
Property Value
Type | Description |
---|---|
ComponentPort | The instance of the component port |
Methods
View SourceStart()
Starts the task.
Declaration
public void Start()
Stop()
Stops the task.
Declaration
public void Stop()
Remarks
This method calls ComponentPort.Cancel() before stopping the thread.