Class ComponentManager
Definition
- Namespace:
- Tizen.Applications.ComponentBased
- Assembly:
- Tizen.Applications.ComponentBased.ComponentManager.dll
- API Level:
- 6
This class has the methods and events of the ComponentManager.
C#Copypublic static class ComponentManager
- Inheritance
-
System.ObjectComponentManager
Methods
GetInstalledComponentsAsync()
Gets the information of the installed components asynchronously.
Declaration
C#Copypublic static Task<IEnumerable<ComponentInfo>> GetInstalledComponentsAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ComponentInfo>> | The installed component info list. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when failed because of an invalid argument. |
InvalidOperationException | Thrown when failed because of the "component not exist" error or the system error. |
OutOfMemoryException | Thrown when failed because of out of memory. |
UnauthorizedAccessException | Thrown when failed because of permission denied. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/packagemanager.info
GetRunningComponentsAsync()
Gets the information of the running components asynchronously.
Declaration
C#Copypublic static Task<IEnumerable<ComponentRunningContext>> GetRunningComponentsAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ComponentRunningContext>> | The component running context list. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when failed because of an invalid argument. |
InvalidOperationException | Thrown when failed because of the "component not exist" error or the system error. |
OutOfMemoryException | Thrown when failed because of out of memory. |
UnauthorizedAccessException | Thrown when failed because of permission denied. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/packagemanager.info
Declaration
C#Copypublic static bool IsRunning(string componentId)
Parameters
Type | Name | Description |
---|---|---|
System.String | componentId | Component ID. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the component is running, otherwise false. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when failed because of an invalid argument. |
InvalidOperationException | Thrown when failed because of the "component not exist" error or the system error. |
OutOfMemoryException | Thrown when failed because of out of memory. |
UnauthorizedAccessException | Thrown when failed because of permission denied. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/packagemanager.info
TerminateBackgroundComponent(ComponentRunningContext)
Terminates the component if it is running in the background.
Declaration
C#Copypublic static void TerminateBackgroundComponent(ComponentRunningContext context)
Parameters
Type | Name | Description |
---|---|---|
ComponentRunningContext | context | Component ID |
Remarks
This function returns after it just sends a request for terminating a background component. Platform will decide if the target component could be terminated or not according to the state of the target component.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when failed because of an invalid argument. |
InvalidOperationException | Thrown when failed because of the "component not exist" error or the system error. |
OutOfMemoryException | Thrown when failed because of out of memory. |
UnauthorizedAccessException | Thrown when failed because of permission denied. |