Search Results for

    Show / Hide Table of Contents

    Desktop system API extension

    This extension adds a variety of the desktop system APIs to the adapter. These include LaunchManifestAsync and GetAllApplications.

    To use the extension:

    1. Reference the OpenFin.Net.Adapter.Extensions.DesktopSystem package from NuGet.

    2. Activate the extension as part of the Runtime builder process, by adding a call to UseDesktopSystem.

    IRuntime runtime = new RuntimeFactory()
                 .UseDesktopSystem()
                 .GetRuntimeInstance(new RuntimeOptions
                 {
                     Version = "stable",
                     UUID = "UUID_STRING",
                     LicenseKey = "LICENSE_KEY"
                 });
    

    To access the API, query the Runtime for IDesktopSystem. For example:

    var desktopSystem = runtime.GetService<IDesktopSystem>();
    
    var apps = await desktopSystem.GetAllApplicationsAsync();
    
    In This Article
    Back to top Copyright OpenFin