Class ApplicationManager
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.Common.dll
This class has the methods and events of the ApplicationManager.
public static class ApplicationManager
- Inheritance
-
objectApplicationManager
Methods
View SourceGetAllRunningApplicationsAsync()
Gets the information of the running applications including subapp asynchronously.
Declaration
public static Task<IEnumerable<ApplicationRunningContext>> GetAllRunningApplicationsAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><System.Collections.Generic.IEnumerable<T><ApplicationRunningContext>> |
GetInstalledApplication(string)
Gets the information of the specified application with the application ID.
Declaration
public static ApplicationInfo GetInstalledApplication(string applicationId)
Parameters
Type | Name | Description |
---|---|---|
string | applicationId | Application ID. |
Returns
Type | Description |
---|---|
ApplicationInfo |
GetInstalledApplicationsAsync()
Gets the information of the installed applications asynchronously.
Declaration
public static Task<IEnumerable<ApplicationInfo>> GetInstalledApplicationsAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><System.Collections.Generic.IEnumerable<T><ApplicationInfo>> |
GetInstalledApplicationsAsync(ApplicationInfoFilter)
Gets the information of the installed applications with the ApplicationInfoFilter asynchronously.
Declaration
public static Task<IEnumerable<ApplicationInfo>> GetInstalledApplicationsAsync(ApplicationInfoFilter filter)
Parameters
Type | Name | Description |
---|---|---|
ApplicationInfoFilter | filter | Key-value pairs for filtering. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><System.Collections.Generic.IEnumerable<T><ApplicationInfo>> |
GetInstalledApplicationsAsync(ApplicationInfoMetadataFilter)
Gets the information of the installed applications with the ApplicationInfoMetadataFilter asynchronously.
Declaration
public static Task<IEnumerable<ApplicationInfo>> GetInstalledApplicationsAsync(ApplicationInfoMetadataFilter filter)
Parameters
Type | Name | Description |
---|---|---|
ApplicationInfoMetadataFilter | filter | Key-value pairs for filtering. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><System.Collections.Generic.IEnumerable<T><ApplicationInfo>> |
GetRunningApplicationsAsync()
Gets the information of the running applications asynchronously.
Declaration
public static Task<IEnumerable<ApplicationRunningContext>> GetRunningApplicationsAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><System.Collections.Generic.IEnumerable<T><ApplicationRunningContext>> |
IsRunning(string)
Returns if the specified application is running or not.
Declaration
public static bool IsRunning(string applicationId)
Parameters
Type | Name | Description |
---|---|---|
string | applicationId | The application ID. |
Returns
Type | Description |
---|---|
bool | Returns true if the given application is running, otherwise false. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the given parameter is invalid. |
Events
View SourceApplicationDisabled
Occurs whenever the installed application is disabled.
Declaration
public static event EventHandler<ApplicationDisabledEventArgs> ApplicationDisabled
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><ApplicationDisabledEventArgs> |
ApplicationEnabled
Occurs whenever the installed application is enabled.
Declaration
public static event EventHandler<ApplicationEnabledEventArgs> ApplicationEnabled
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><ApplicationEnabledEventArgs> |
ApplicationLaunched
Occurs whenever the installed applications get launched.
Declaration
public static event EventHandler<ApplicationLaunchedEventArgs> ApplicationLaunched
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><ApplicationLaunchedEventArgs> |
ApplicationTerminated
Occurs whenever the installed applications get terminated.
Declaration
public static event EventHandler<ApplicationTerminatedEventArgs> ApplicationTerminated
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><ApplicationTerminatedEventArgs> |