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
    object
    ApplicationManager

    Methods

    View Source

    AttachWindow(string, string)

    Attaches the window of the child application to the window of the parent application.

    Declaration
    public static void AttachWindow(string parentAppId, string childAppId)
    Parameters
    Type Name Description
    string parentAppId
    string childAppId
    Remarks

    This method is only available for platform level signed applications.

    View Source

    AttachWindowBelow(string, string)

    Attaches the window of the child application below the window of the parent application.

    Declaration
    public static void AttachWindowBelow(string parentAppId, string childAppId)
    Parameters
    Type Name Description
    string parentAppId
    string childAppId
    Remarks

    This method is only available for platform level signed applications.

    View Source

    DetachWindow(string)

    Detaches the window of the application from its parent window.

    Declaration
    public static void DetachWindow(string applicationId)
    Parameters
    Type Name Description
    string applicationId
    Remarks

    This method is only available for platform level signed applications.

    View Source

    GetAllRunningApplicationsAsync()

    Gets the information of the running applications including subapp asynchronously.

    Declaration
    public static Task<IEnumerable<ApplicationRunningContext>> GetAllRunningApplicationsAsync()
    Returns
    Type Description
    Task<><IEnumerable<><ApplicationRunningContext>>

    The application running context list.

    View Source

    GetAppId(int)

    Returns the application id.

    Declaration
    public static string GetAppId(int processId)
    Parameters
    Type Name Description
    int processId

    The application pid.

    Returns
    Type Description
    string

    Returns the application id.

    View Source

    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

    The application info.

    View Source

    GetInstalledApplicationsAsync()

    Gets the information of the installed applications asynchronously.

    Declaration
    public static Task<IEnumerable<ApplicationInfo>> GetInstalledApplicationsAsync()
    Returns
    Type Description
    Task<><IEnumerable<><ApplicationInfo>>

    The installed application info list.

    View Source

    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
    Task<><IEnumerable<><ApplicationInfo>>

    The installed application info list.

    View Source

    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
    Task<><IEnumerable<><ApplicationInfo>>

    The installed application info list.

    View Source

    GetRecentApplications()

    Gets the information of the recent applications.

    Declaration
    public static IEnumerable<RecentApplicationInfo> GetRecentApplications()
    Returns
    Type Description
    IEnumerable<><RecentApplicationInfo>

    Returns a dictionary containing all the recent application info.

    View Source

    GetRunningApplicationsAsync()

    Gets the information of the running applications asynchronously.

    Declaration
    public static Task<IEnumerable<ApplicationRunningContext>> GetRunningApplicationsAsync()
    Returns
    Type Description
    Task<><IEnumerable<><ApplicationRunningContext>>

    The application running context list.

    View Source

    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.

    View Source

    TerminateBackgroundApplication(ApplicationRunningContext)

    Terminates the application if it is running on background.

    Declaration
    public 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.

    Events

    View Source

    ApplicationDisabled

    Occurs whenever the installed application is disabled.

    Declaration
    public static event EventHandler<ApplicationDisabledEventArgs> ApplicationDisabled
    Event Type
    Type Description
    EventHandler<><ApplicationDisabledEventArgs>
    View Source

    ApplicationEnabled

    Occurs whenever the installed application is enabled.

    Declaration
    public static event EventHandler<ApplicationEnabledEventArgs> ApplicationEnabled
    Event Type
    Type Description
    EventHandler<><ApplicationEnabledEventArgs>
    View Source

    ApplicationLaunched

    Occurs whenever the installed applications get launched.

    Declaration
    public static event EventHandler<ApplicationLaunchedEventArgs> ApplicationLaunched
    Event Type
    Type Description
    EventHandler<><ApplicationLaunchedEventArgs>
    View Source

    ApplicationTerminated

    Occurs whenever the installed applications get terminated.

    Declaration
    public static event EventHandler<ApplicationTerminatedEventArgs> ApplicationTerminated
    Event Type
    Type Description
    EventHandler<><ApplicationTerminatedEventArgs>
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX