AboutSupportDeveloper GuideVersion 38.126.83.84

Static namespace for OpenFin API methods that interact with the ExternalApplication class, available under fin.ExternalApplication.

Hierarchy

  • Base
    • ExternalApplicationModule

Accessors

Methods

Accessors

  • get me(): Identity
  • Provides access to the OpenFin representation of the current code context (usually a document such as a OpenFin.View or OpenFin.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

  • Asynchronously returns an External Application object that represents an external application.
    It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events) provided its uuid is already known.

    Parameters

    • uuid: string

      The UUID of the external application to be wrapped

    Returns Promise<ExternalApplication>

    Example

    fin.ExternalApplication.wrap('javaApp-uuid');
    .then(extApp => console.log('wrapped external application'))
    .catch(err => console.log(err));
  • Synchronously returns an External Application object that represents an external application.
    It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events) provided its uuid is already known.

    Parameters

    • uuid: string

      The UUID of the external application to be wrapped

    Returns ExternalApplication

    Example

    const extApp = fin.ExternalApplication.wrapSync('javaApp-uuid');
    const info = await extApp.getInfo();
    console.log(info);