Class ApplicationManager
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.Common.dll
- API Level:
- 3
This class has the methods and events of the ApplicationManager.
C#Copypublic static class ApplicationManager
- Inheritance
-
ApplicationManager
Methods
GetAllRunningApplicationsAsync()
Gets the information of the running applications including subapp asynchronously.
Declaration
C#Copypublic static Task<IEnumerable<ApplicationRunningContext>> GetAllRunningApplicationsAsync()
Returns
Type | Description |
---|---|
Task<IEnumerable<ApplicationRunningContext>> | The application running context list. |
API Level: 3
Declaration
C#Copypublic static string GetAppId(int processId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | processId | The application pid. |
Returns
Type | Description |
---|---|
String | Returns the application id. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the given parameter is invalid. |
API Level: 6
GetInstalledApplication(String)
Gets the information of the specified application with the application ID.
Declaration
C#Copypublic static ApplicationInfo GetInstalledApplication(string applicationId)
Parameters
Type | Name | Description |
---|---|---|
String | applicationId | Application ID. |
Returns
Type | Description |
---|---|
ApplicationInfo | The application info. |
API Level: 3
GetInstalledApplicationsAsync()
Gets the information of the installed applications asynchronously.
Declaration
C#Copypublic static Task<IEnumerable<ApplicationInfo>> GetInstalledApplicationsAsync()
Returns
Type | Description |
---|---|
Task<IEnumerable<ApplicationInfo>> | The installed application info list. |
API Level: 3
GetInstalledApplicationsAsync(ApplicationInfoFilter)
Gets the information of the installed applications with the ApplicationInfoFilter asynchronously.
Declaration
C#Copypublic static Task<IEnumerable<ApplicationInfo>> GetInstalledApplicationsAsync(ApplicationInfoFilter filter)
Parameters
Type | Name | Description |
---|---|---|
ApplicationInfoFilter | filter | Key-value pairs for filtering. |
Returns
Type | Description |
---|---|
Task<IEnumerable<ApplicationInfo>> | The installed application info list. |
API Level: 3
GetInstalledApplicationsAsync(ApplicationInfoMetadataFilter)
Gets the information of the installed applications with the ApplicationInfoMetadataFilter asynchronously.
Declaration
C#Copypublic static Task<IEnumerable<ApplicationInfo>> GetInstalledApplicationsAsync(ApplicationInfoMetadataFilter filter)
Parameters
Type | Name | Description |
---|---|---|
ApplicationInfoMetadataFilter | filter | Key-value pairs for filtering. |
Returns
Type | Description |
---|---|
Task<IEnumerable<ApplicationInfo>> | The installed application info list. |
API Level: 3
GetRunningApplicationsAsync()
Gets the information of the running applications asynchronously.
Declaration
C#Copypublic static Task<IEnumerable<ApplicationRunningContext>> GetRunningApplicationsAsync()
Returns
Type | Description |
---|---|
Task<IEnumerable<ApplicationRunningContext>> | The application running context list. |
API Level: 3
Declaration
C#Copypublic static bool IsRunning(string applicationId)
Parameters
Type | Name | Description |
---|---|---|
String | applicationId | The application ID. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the given application is running, otherwise false. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the given parameter is invalid. |
API Level: 3
TerminateBackgroundApplication(ApplicationRunningContext)
Terminates the application if it is running on background.
Declaration
C#Copypublic static void TerminateBackgroundApplication(ApplicationRunningContext app)
Parameters
Type | Name | Description |
---|---|---|
ApplicationRunningContext | app | ApplicationRunningContext object |
Remarks
This function returns after it just sends a request for terminating a background application. Platform will decide if the target application could be terminated or not according to the state of the target application.
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when failed of invalid argument. |
UnauthorizedAccessException | Thrown when failed because of permission denied. |
InvalidOperationException | Thrown when failed because of system error. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/appmanager.kill.bgapp
Events
Declaration
C#Copypublic static event EventHandler<ApplicationDisabledEventArgs> ApplicationDisabled
Event Type
Type | Description |
---|---|
EventHandler<ApplicationDisabledEventArgs> |
API Level: 3
Declaration
C#Copypublic static event EventHandler<ApplicationEnabledEventArgs> ApplicationEnabled
Event Type
Type | Description |
---|---|
EventHandler<ApplicationEnabledEventArgs> |
API Level: 3
Declaration
C#Copypublic static event EventHandler<ApplicationLaunchedEventArgs> ApplicationLaunched
Event Type
Type | Description |
---|---|
EventHandler<ApplicationLaunchedEventArgs> |
API Level: 3
Declaration
C#Copypublic static event EventHandler<ApplicationTerminatedEventArgs> ApplicationTerminated
Event Type
Type | Description |
---|---|
EventHandler<ApplicationTerminatedEventArgs> |