AboutSupportDeveloper GuideVersion 36.122.80.11

An ExternalApplication object representing native language adapter connections to the runtime. Allows the developer to listen to external application events. Discovery of connections is provided by getAllExternalApplications.

Processes that can be wrapped as ExternalApplications include the following:

  • Processes which have connected to an OpenFin runtime via an adapter
  • Processes started via System.launchExternalApplication
  • Processes monitored via System.monitorExternalProcess

Hierarchy

Properties

Accessors

  • get me(): Identity
  • Provides access to the OpenFin representation of the current code context (usually a document such as a View or Window), as well as to the current Interop context.

    Useful for debugging in the devtools console, where this will intelligently type itself based on the context in which the devtools panel was opened.

    Returns Identity

Methods

  • Returns (string | symbol)[]

  • Retrieves information about the external application.

    Returns Promise<ExternalApplicationInfo>

    Example

    async function getInfo() {
    const extApp = await fin.ExternalApplication.wrap('javaApp-uuid');
    return await extApp.getInfo();
    }
    getInfo().then(info => console.log(info)).catch(err => console.log(err));
  • Parameters

    • type: string | symbol

    Returns number

  • Parameters

    • type: string | symbol

    Returns Function[]

  • Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed. The listener is added to the beginning of the listeners array.

    Type Parameters

    • EventType extends "connected" | "disconnected"

    Parameters

    Returns Promise<ExternalApplication>

    Remarks

    Event payloads are documented in the Events namespace.

  • Removes all listeners, or those of the specified event.

    Parameters

    • Optional eventType: "connected" | "disconnected"

    Returns Promise<ExternalApplication>