Class ComponentRunningContext
Definition
- Namespace:
- Tizen.Applications.ComponentBased
- Assembly:
- Tizen.Applications.ComponentBased.ComponentManager.dll
Represents the context of a running component, providing methods and properties to retrieve information about the component's state and behavior.
public class ComponentRunningContext : IDisposable
- Inheritance
-
objectComponentRunningContext
Constructors
View SourceComponentRunningContext(string)
Initializes a new instance of the ComponentRunningContext class with a specified component ID, retrieving the context handle associated with it.
Declaration
public ComponentRunningContext(string componentId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | componentId | The ID of the component. |
Properties
View SourceApplicationId
Gets the application ID associated with the component.
Declaration
public string ApplicationId { get; }
Property Value
| Type | Description |
|---|---|
| string |
ComponentId
Gets the ID of the component.
Declaration
public string ComponentId { get; }
Property Value
| Type | Description |
|---|---|
| string | The component ID as a string. |
InstanceId
Gets the instance ID of the component.
Declaration
public string InstanceId { get; }
Property Value
| Type | Description |
|---|---|
| string |
IsSubComponent
Checks whether the component is running as a sub-component of a group.
Declaration
public bool IsSubComponent { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
IsTerminated
Checks whether the component has been terminated.
Declaration
public bool IsTerminated { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
State
Gets the current state of the component.
Declaration
public ComponentRunningContext.ComponentState State { get; }
Property Value
| Type | Description |
|---|---|
| ComponentRunningContext.ComponentState |
Methods
View SourceDispose()
Releases all resources used by the ComponentRunningContext class.
Declaration
public void Dispose()
~ComponentRunningContext()
Finalizes an instance of the ComponentRunningContext class.
Declaration
protected ~ComponentRunningContext()
Pause()
Pauses the execution of the running component.
Declaration
public void Pause()
Resume()
Resumes the execution of the running component.
Declaration
public void Resume()
Terminate()
Terminates the execution of the running component.
Declaration
public void Terminate()