An object representing the core of OpenFin Runtime. Allows the developer to perform system-level actions, such as accessing logs, viewing processes, clearing the cache and exiting the runtime as well as listen to system events.

Namespace

Hierarchy

Constructors

Properties

addListener: (<EventType>(eventType: EventType, listener: EventHandler<OpenFin.SystemEvents.SystemEvent, EventType>, options?: SubscriptionOptions) => Promise<System>) = ...

Type declaration

    • <EventType>(eventType: EventType, listener: EventHandler<OpenFin.SystemEvents.SystemEvent, EventType>, options?: SubscriptionOptions): Promise<System>
    • Type Parameters

      • EventType extends "view-attached" | "window-alert-requested" | "window-created" | "window-end-load" | "window-not-responding" | "window-responding" | "window-start-load" | "view-blurred" | "view-certificate-selection-shown" | "view-crashed" | "view-did-change-theme-color" | "view-focused" | "view-navigation-rejected" | "view-url-changed" | "view-did-fail-load" | "view-did-finish-load" | "view-page-favicon-updated" | "view-page-title-updated" | "view-resource-load-failed" | "view-response-received" | "view-child-content-blocked" | "view-child-content-opened-in-browser" | "view-child-view-created" | "view-file-download-started" | "view-file-download-progress" | "view-file-download-completed" | "view-created" | "view-destroyed" | "view-hidden" | "view-hotkey" | "view-shown" | "view-target-changed" | "window-blurred" | "window-certificate-selection-shown" | "window-crashed" | "window-did-change-theme-color" | "window-focused" | "window-navigation-rejected" | "window-url-changed" | "window-did-fail-load" | "window-did-finish-load" | "window-page-favicon-updated" | "window-page-title-updated" | "window-resource-load-failed" | "window-response-received" | "window-child-content-blocked" | "window-child-content-opened-in-browser" | "window-child-view-created" | "window-file-download-started" | "window-file-download-progress" | "window-file-download-completed" | "window-view-attached" | "window-view-detached" | "window-begin-user-bounds-changing" | "window-bounds-changed" | "window-bounds-changing" | "window-closed" | "window-closing" | "window-disabled-movement-bounds-changed" | "window-disabled-movement-bounds-changing" | "window-embedded" | "window-end-user-bounds-changing" | "window-external-process-exited" | "window-external-process-started" | "window-hidden" | "window-hotkey" | "window-initialized" | "window-layout-initialized" | "window-layout-ready" | "window-maximized" | "window-minimized" | "window-options-changed" | "window-performance-report" | "window-preload-script-state-changed" | "window-preload-script-state-changing" | "window-reloaded" | "window-restored" | "window-shown" | "window-user-movement-disabled" | "window-user-movement-enabled" | "window-will-move" | "window-will-redirect" | "window-will-resize" | `app-version-progress.${string}` | `runtime-status.${string}` | `app-version-complete.${string}` | `app-version-error.${string}` | "application-created" | "desktop-icon-clicked" | "system-shutdown" | "application-crashed" | "application-closed" | "application-connected" | "application-initialized" | "application-manifest-changed" | "application-not-responding" | "application-responding" | "application-run-requested" | "application-started" | "application-tray-icon-clicked" | "application-file-download-location-changed" | "idle-state-changed" | "session-changed" | "monitor-info-changed"

      Parameters

      Returns Promise<System>

wire: Transport<EntityType>

Accessors

Methods

  • Clears cached data containing application resource files (images, HTML, JavaScript files), cookies, and items stored in the Local Storage.

    Returns

    Tutorial

    System.clearCache

    Parameters

    Returns Promise<void>

  • Clears all cached data when OpenFin Runtime exits.

    Returns

    Tutorial

    System.deleteCacheOnExit

    Returns Promise<void>

  • Type Parameters

    • EventType extends string

    Parameters

    • eventType: EventType
    • payload: Extract<EmitterEvent, {
          type: EventType;
      }>
    • Rest ...args: any[]

    Returns boolean

  • Returns (string | symbol)[]

  • Exits the Runtime.

    Returns

    Tutorial

    System.exit

    Returns Promise<void>

  • Fetches a JSON manifest using the browser process and returns a Javascript object.

    Returns

    Tutorial

    System.fetchManifest

    Parameters

    • manifestUrl: string

      The URL of the manifest to fetch.

    Returns Promise<any>

  • Writes any unwritten cookies data to disk.

    Returns

    Tutorial

    System.flushCookieStore

    Returns Promise<void>

  • Retrieves an array of data for all applications.

    Returns

    Tutorial

    System.getAllApplications

    Returns Promise<ApplicationState[]>

  • Retrieves an array of data (name, ids, bounds) for all application windows.

    Returns

    Tutorial

    System.getAllExternalApplications

    Returns Promise<Identity[]>

  • Experimental

    Retrieves all process information. This includes the browser process and every process associated to all entities (windows and views).

    Returns

    Tutorial

    System.getAllProcessInfo

    Returns Promise<SystemProcessInfo>

  • Retrieves the command line argument string that started OpenFin Runtime.

    Returns

    Tutorial

    System.getCommandLineArguments

    Returns Promise<string>

  • Retrieves a frame info object for the uuid and name passed in

    Returns

    Tutorial

    System.getEntityInfo

    Parameters

    • uuid: string

      The UUID of the target.

    • name: string

      The name of the target.

    Returns Promise<EntityInfo>

  • Gets the value of a given environment variable on the computer on which the runtime is installed

    Returns

    Tutorial

    System.getEnvironmentVariable

    Parameters

    • envName: string

    Returns Promise<string>

  • Get current focused window.

    Returns

    Tutorial

    System.getFocusedWindow

    Returns Promise<null | Identity>

  • Retrieves system information.

    Returns

    Tutorial

    System.getHostSpecs

    Returns Promise<HostSpecs>

  • Returns an array of all the installed runtime versions in an object.

    Returns

    Tutorial

    System.getInstalledRuntimes

    Returns Promise<string[]>

  • Retrieves the contents of the log with the specified filename.

    Returns

    Tutorial

    System.getLog

    Parameters

    • options: GetLogRequestType

      A object that id defined by the GetLogRequestType interface

    Returns Promise<string>

  • Retrieves an array containing information for each log file.

    Returns

    Tutorial

    System.getLogList

    Returns Promise<LogInfo[]>

  • Returns a unique identifier (UUID) provided by the machine.

    Returns

    Tutorial

    System.getMachineId

    Returns Promise<string>

  • Returns the minimum (inclusive) logging level that is currently being written to the log.

    Returns

    Tutorial

    System.getMinLogLevel

    Returns Promise<LogLevel>

  • Retrieves an object that contains data about the monitor setup of the computer that the runtime is running on.

    Returns

    Tutorial

    System.getMonitorInfo

    Returns Promise<MonitorInfo>

  • Returns the mouse in virtual screen coordinates (left, top).

    Returns

    Tutorial

    System.getMousePosition

    Returns Promise<PointTopLeft>

  • Returns an array with all printers of the caller and not all the printers on the desktop.

    Returns

    Tutorial

    System.getPrinters

    Returns Promise<PrinterInfo[]>

  • Retrieves an array of all of the runtime processes that are currently running. Each element in the array is an object containing the uuid and the name of the application to which the process belongs.

    Deprecated

    Please use our new set of process APIs: [Window.getProcessInfo]Window#getProcessInfo [View.getProcessInfo]View#getProcessInfo [Application.getProcessInfo]Application#getProcessInfo [System.getAllProcessInfo]getAllProcessInfo

    Returns

    Tutorial

    System.getProcessList

    Returns Promise<any[]>

  • Retrieves the Proxy settings.

    Returns

    Tutorial

    System.getProxySettings

    Returns Promise<ProxyInfo>

  • Returns information about the running Runtime in an object.

    Returns

    Tutorial

    System.getRuntimeInfo

    Returns Promise<RuntimeInfo>

  • Returns information about the running RVM in an object.

    Returns

    Tutorial

    System.getRvmInfo

    Returns Promise<RVMInfo>

  • Returns a hex encoded hash of the machine id and the currently logged in user name. This is the recommended way to uniquely identify a user / machine combination.

    Returns

    Tutorial

    System.getUniqueUserId

    Static

    Returns Promise<string>

  • Returns the version of the runtime. The version contains the major, minor, build and revision numbers.

    Returns

    Tutorial

    System.getVersion

    Returns Promise<string>

  • Returns information about the given app's certification status

    Returns

    Tutorial

    System.isAppCertified

    Parameters

    • manifestUrl: string

    Returns Promise<CertifiedAppInfo>

  • Runs an executable or batch file. A path to the file must be included in options.
    A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
    Note: This method is restricted by default and must be enabled via API security settings. Also, this api has an enhanced permission set to make it less dangerous. So application owners can only allow to launch the assets owned by the application, the enabled downloaded files or the restricted executables.

    Returns

    Tutorial

    System.launchExternalProcess

    Parameters

    Returns Promise<Identity>

  • Experimental

    Launch application using a manifest URL/path. It differs from Application.startFromManifest in that this API can accept a manifest using the fin protocol.

    Returns

    Tutorial

    System.launchManifest

    Static

    Parameters

    • manifestUrl: string

      The manifest's URL or path.

    • Optional opts: RvmLaunchOptions = {}

      Parameters that the RVM will use.

    Returns Promise<Manifest>

  • Parameters

    • type: string | symbol

    Returns number

  • Parameters

    • type: string | symbol

    Returns Function[]

  • Writes the passed message into both the log file and the console.

    Returns

    Tutorial

    System.log

    Parameters

    • level: string

      The log level for the entry. Can be either "info", "warning" or "error"

    • message: string

      The log message text

    Returns Promise<void>

  • Monitors a running process. A pid for the process must be included in options.
    A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.

    Returns

    Tutorial

    System.monitorExternalProcess

    Parameters

    Returns Promise<Identity>

  • Type Parameters

    • EventType extends "view-attached" | "window-alert-requested" | "window-created" | "window-end-load" | "window-not-responding" | "window-responding" | "window-start-load" | "view-blurred" | "view-certificate-selection-shown" | "view-crashed" | "view-did-change-theme-color" | "view-focused" | "view-navigation-rejected" | "view-url-changed" | "view-did-fail-load" | "view-did-finish-load" | "view-page-favicon-updated" | "view-page-title-updated" | "view-resource-load-failed" | "view-response-received" | "view-child-content-blocked" | "view-child-content-opened-in-browser" | "view-child-view-created" | "view-file-download-started" | "view-file-download-progress" | "view-file-download-completed" | "view-created" | "view-destroyed" | "view-hidden" | "view-hotkey" | "view-shown" | "view-target-changed" | "window-blurred" | "window-certificate-selection-shown" | "window-crashed" | "window-did-change-theme-color" | "window-focused" | "window-navigation-rejected" | "window-url-changed" | "window-did-fail-load" | "window-did-finish-load" | "window-page-favicon-updated" | "window-page-title-updated" | "window-resource-load-failed" | "window-response-received" | "window-child-content-blocked" | "window-child-content-opened-in-browser" | "window-child-view-created" | "window-file-download-started" | "window-file-download-progress" | "window-file-download-completed" | "window-view-attached" | "window-view-detached" | "window-begin-user-bounds-changing" | "window-bounds-changed" | "window-bounds-changing" | "window-closed" | "window-closing" | "window-disabled-movement-bounds-changed" | "window-disabled-movement-bounds-changing" | "window-embedded" | "window-end-user-bounds-changing" | "window-external-process-exited" | "window-external-process-started" | "window-hidden" | "window-hotkey" | "window-initialized" | "window-layout-initialized" | "window-layout-ready" | "window-maximized" | "window-minimized" | "window-options-changed" | "window-performance-report" | "window-preload-script-state-changed" | "window-preload-script-state-changing" | "window-reloaded" | "window-restored" | "window-shown" | "window-user-movement-disabled" | "window-user-movement-enabled" | "window-will-move" | "window-will-redirect" | "window-will-resize" | `app-version-progress.${string}` | `runtime-status.${string}` | `app-version-complete.${string}` | `app-version-error.${string}` | "application-created" | "desktop-icon-clicked" | "system-shutdown" | "application-crashed" | "application-closed" | "application-connected" | "application-initialized" | "application-manifest-changed" | "application-not-responding" | "application-responding" | "application-run-requested" | "application-started" | "application-tray-icon-clicked" | "application-file-download-location-changed" | "idle-state-changed" | "session-changed" | "monitor-info-changed"

    Parameters

    Returns Promise<System>

  • Type Parameters

    • EventType extends "view-attached" | "window-alert-requested" | "window-created" | "window-end-load" | "window-not-responding" | "window-responding" | "window-start-load" | "view-blurred" | "view-certificate-selection-shown" | "view-crashed" | "view-did-change-theme-color" | "view-focused" | "view-navigation-rejected" | "view-url-changed" | "view-did-fail-load" | "view-did-finish-load" | "view-page-favicon-updated" | "view-page-title-updated" | "view-resource-load-failed" | "view-response-received" | "view-child-content-blocked" | "view-child-content-opened-in-browser" | "view-child-view-created" | "view-file-download-started" | "view-file-download-progress" | "view-file-download-completed" | "view-created" | "view-destroyed" | "view-hidden" | "view-hotkey" | "view-shown" | "view-target-changed" | "window-blurred" | "window-certificate-selection-shown" | "window-crashed" | "window-did-change-theme-color" | "window-focused" | "window-navigation-rejected" | "window-url-changed" | "window-did-fail-load" | "window-did-finish-load" | "window-page-favicon-updated" | "window-page-title-updated" | "window-resource-load-failed" | "window-response-received" | "window-child-content-blocked" | "window-child-content-opened-in-browser" | "window-child-view-created" | "window-file-download-started" | "window-file-download-progress" | "window-file-download-completed" | "window-view-attached" | "window-view-detached" | "window-begin-user-bounds-changing" | "window-bounds-changed" | "window-bounds-changing" | "window-closed" | "window-closing" | "window-disabled-movement-bounds-changed" | "window-disabled-movement-bounds-changing" | "window-embedded" | "window-end-user-bounds-changing" | "window-external-process-exited" | "window-external-process-started" | "window-hidden" | "window-hotkey" | "window-initialized" | "window-layout-initialized" | "window-layout-ready" | "window-maximized" | "window-minimized" | "window-options-changed" | "window-performance-report" | "window-preload-script-state-changed" | "window-preload-script-state-changing" | "window-reloaded" | "window-restored" | "window-shown" | "window-user-movement-disabled" | "window-user-movement-enabled" | "window-will-move" | "window-will-redirect" | "window-will-resize" | `app-version-progress.${string}` | `runtime-status.${string}` | `app-version-complete.${string}` | `app-version-error.${string}` | "application-created" | "desktop-icon-clicked" | "system-shutdown" | "application-crashed" | "application-closed" | "application-connected" | "application-initialized" | "application-manifest-changed" | "application-not-responding" | "application-responding" | "application-run-requested" | "application-started" | "application-tray-icon-clicked" | "application-file-download-location-changed" | "idle-state-changed" | "session-changed" | "monitor-info-changed"

    Parameters

    Returns Promise<System>

  • Opens the passed URL in the default web browser. It only supports http(s) and fin(s) protocols by default. In order to use other custom protocols, they have to be enabled via API security settings. File protocol and file path are not supported.

    Returns

    Tutorial

    System.openUrlWithBrowser

    Parameters

    • url: string

      The URL to open

    Returns Promise<void>

  • Type Parameters

    • EventType extends "view-attached" | "window-alert-requested" | "window-created" | "window-end-load" | "window-not-responding" | "window-responding" | "window-start-load" | "view-blurred" | "view-certificate-selection-shown" | "view-crashed" | "view-did-change-theme-color" | "view-focused" | "view-navigation-rejected" | "view-url-changed" | "view-did-fail-load" | "view-did-finish-load" | "view-page-favicon-updated" | "view-page-title-updated" | "view-resource-load-failed" | "view-response-received" | "view-child-content-blocked" | "view-child-content-opened-in-browser" | "view-child-view-created" | "view-file-download-started" | "view-file-download-progress" | "view-file-download-completed" | "view-created" | "view-destroyed" | "view-hidden" | "view-hotkey" | "view-shown" | "view-target-changed" | "window-blurred" | "window-certificate-selection-shown" | "window-crashed" | "window-did-change-theme-color" | "window-focused" | "window-navigation-rejected" | "window-url-changed" | "window-did-fail-load" | "window-did-finish-load" | "window-page-favicon-updated" | "window-page-title-updated" | "window-resource-load-failed" | "window-response-received" | "window-child-content-blocked" | "window-child-content-opened-in-browser" | "window-child-view-created" | "window-file-download-started" | "window-file-download-progress" | "window-file-download-completed" | "window-view-attached" | "window-view-detached" | "window-begin-user-bounds-changing" | "window-bounds-changed" | "window-bounds-changing" | "window-closed" | "window-closing" | "window-disabled-movement-bounds-changed" | "window-disabled-movement-bounds-changing" | "window-embedded" | "window-end-user-bounds-changing" | "window-external-process-exited" | "window-external-process-started" | "window-hidden" | "window-hotkey" | "window-initialized" | "window-layout-initialized" | "window-layout-ready" | "window-maximized" | "window-minimized" | "window-options-changed" | "window-performance-report" | "window-preload-script-state-changed" | "window-preload-script-state-changing" | "window-reloaded" | "window-restored" | "window-shown" | "window-user-movement-disabled" | "window-user-movement-enabled" | "window-will-move" | "window-will-redirect" | "window-will-resize" | `app-version-progress.${string}` | `runtime-status.${string}` | `app-version-complete.${string}` | `app-version-error.${string}` | "application-created" | "desktop-icon-clicked" | "system-shutdown" | "application-crashed" | "application-closed" | "application-connected" | "application-initialized" | "application-manifest-changed" | "application-not-responding" | "application-responding" | "application-run-requested" | "application-started" | "application-tray-icon-clicked" | "application-file-download-location-changed" | "idle-state-changed" | "session-changed" | "monitor-info-changed"

    Parameters

    Returns Promise<System>

  • Type Parameters

    • EventType extends "view-attached" | "window-alert-requested" | "window-created" | "window-end-load" | "window-not-responding" | "window-responding" | "window-start-load" | "view-blurred" | "view-certificate-selection-shown" | "view-crashed" | "view-did-change-theme-color" | "view-focused" | "view-navigation-rejected" | "view-url-changed" | "view-did-fail-load" | "view-did-finish-load" | "view-page-favicon-updated" | "view-page-title-updated" | "view-resource-load-failed" | "view-response-received" | "view-child-content-blocked" | "view-child-content-opened-in-browser" | "view-child-view-created" | "view-file-download-started" | "view-file-download-progress" | "view-file-download-completed" | "view-created" | "view-destroyed" | "view-hidden" | "view-hotkey" | "view-shown" | "view-target-changed" | "window-blurred" | "window-certificate-selection-shown" | "window-crashed" | "window-did-change-theme-color" | "window-focused" | "window-navigation-rejected" | "window-url-changed" | "window-did-fail-load" | "window-did-finish-load" | "window-page-favicon-updated" | "window-page-title-updated" | "window-resource-load-failed" | "window-response-received" | "window-child-content-blocked" | "window-child-content-opened-in-browser" | "window-child-view-created" | "window-file-download-started" | "window-file-download-progress" | "window-file-download-completed" | "window-view-attached" | "window-view-detached" | "window-begin-user-bounds-changing" | "window-bounds-changed" | "window-bounds-changing" | "window-closed" | "window-closing" | "window-disabled-movement-bounds-changed" | "window-disabled-movement-bounds-changing" | "window-embedded" | "window-end-user-bounds-changing" | "window-external-process-exited" | "window-external-process-started" | "window-hidden" | "window-hotkey" | "window-initialized" | "window-layout-initialized" | "window-layout-ready" | "window-maximized" | "window-minimized" | "window-options-changed" | "window-performance-report" | "window-preload-script-state-changed" | "window-preload-script-state-changing" | "window-reloaded" | "window-restored" | "window-shown" | "window-user-movement-disabled" | "window-user-movement-enabled" | "window-will-move" | "window-will-redirect" | "window-will-resize" | `app-version-progress.${string}` | `runtime-status.${string}` | `app-version-complete.${string}` | `app-version-error.${string}` | "application-created" | "desktop-icon-clicked" | "system-shutdown" | "application-crashed" | "application-closed" | "application-connected" | "application-initialized" | "application-manifest-changed" | "application-not-responding" | "application-responding" | "application-run-requested" | "application-started" | "application-tray-icon-clicked" | "application-file-download-location-changed" | "idle-state-changed" | "session-changed" | "monitor-info-changed"

    Parameters

    Returns Promise<System>

  • Query permission of a secured api in current context.

    Returns

    Tutorial

    System.queryPermissionForCurrentContext

    Parameters

    • apiName: string

      The full name of a secured API.

    Returns Promise<QueryPermissionResult>

  • Reads the specifed value from the registry.
    Note: This method is restricted by default and must be enabled via API security settings.

    Returns

    Tutorial

    System.readRegistryValue

    Parameters

    • rootKey: string

      The registry root key.

    • subkey: string

      The registry key.

    • value: string

      The registry value name.

    Returns Promise<RegistryInfo>

  • This function call will register a unique id and produce a token. The token can be used to broker an external connection.

    Returns

    Tutorial

    System.registerExternalConnection

    Parameters

    • uuid: string

      A UUID for the remote connection.

    Returns Promise<ExternalConnection>

  • Experimental

    Registers a system shutdown handler so user can do some cleanup before system is shutting down. Note: Once system shutdown starts, you are unable to cancel it.

    Returns

    Tutorial

    System.registerShutdownHandler

    Parameters

    Returns Promise<void>

  • (Internal) Register the usage of a component with a platform

    Returns

    Tutorial

    System.registerUsage

    Parameters

    Returns Promise<void>

  • Removes the process entry for the passed UUID obtained from a prior call of fin.System.launchExternalProcess().

    Returns

    Tutorial

    System.releaseExternalProcess

    Parameters

    • uuid: string

      The UUID for a process obtained from a prior call to fin.desktop.System.launchExternalProcess()

    Returns Promise<void>

  • Parameters

    • Optional eventType: "view-attached" | "window-alert-requested" | "window-created" | "window-end-load" | "window-not-responding" | "window-responding" | "window-start-load" | "view-blurred" | "view-certificate-selection-shown" | "view-crashed" | "view-did-change-theme-color" | "view-focused" | "view-navigation-rejected" | "view-url-changed" | "view-did-fail-load" | "view-did-finish-load" | "view-page-favicon-updated" | "view-page-title-updated" | "view-resource-load-failed" | "view-response-received" | "view-child-content-blocked" | "view-child-content-opened-in-browser" | "view-child-view-created" | "view-file-download-started" | "view-file-download-progress" | "view-file-download-completed" | "view-created" | "view-destroyed" | "view-hidden" | "view-hotkey" | "view-shown" | "view-target-changed" | "window-blurred" | "window-certificate-selection-shown" | "window-crashed" | "window-did-change-theme-color" | "window-focused" | "window-navigation-rejected" | "window-url-changed" | "window-did-fail-load" | "window-did-finish-load" | "window-page-favicon-updated" | "window-page-title-updated" | "window-resource-load-failed" | "window-response-received" | "window-child-content-blocked" | "window-child-content-opened-in-browser" | "window-child-view-created" | "window-file-download-started" | "window-file-download-progress" | "window-file-download-completed" | "window-view-attached" | "window-view-detached" | "window-begin-user-bounds-changing" | "window-bounds-changed" | "window-bounds-changing" | "window-closed" | "window-closing" | "window-disabled-movement-bounds-changed" | "window-disabled-movement-bounds-changing" | "window-embedded" | "window-end-user-bounds-changing" | "window-external-process-exited" | "window-external-process-started" | "window-hidden" | "window-hotkey" | "window-initialized" | "window-layout-initialized" | "window-layout-ready" | "window-maximized" | "window-minimized" | "window-options-changed" | "window-performance-report" | "window-preload-script-state-changed" | "window-preload-script-state-changing" | "window-reloaded" | "window-restored" | "window-shown" | "window-user-movement-disabled" | "window-user-movement-enabled" | "window-will-move" | "window-will-redirect" | "window-will-resize" | `app-version-progress.${string}` | `runtime-status.${string}` | `app-version-complete.${string}` | `app-version-error.${string}` | "application-created" | "desktop-icon-clicked" | "system-shutdown" | "application-crashed" | "application-closed" | "application-connected" | "application-initialized" | "application-manifest-changed" | "application-not-responding" | "application-responding" | "application-run-requested" | "application-started" | "application-tray-icon-clicked" | "application-file-download-location-changed" | "idle-state-changed" | "session-changed" | "monitor-info-changed"

    Returns Promise<System>

  • Type Parameters

    • EventType extends "view-attached" | "window-alert-requested" | "window-created" | "window-end-load" | "window-not-responding" | "window-responding" | "window-start-load" | "view-blurred" | "view-certificate-selection-shown" | "view-crashed" | "view-did-change-theme-color" | "view-focused" | "view-navigation-rejected" | "view-url-changed" | "view-did-fail-load" | "view-did-finish-load" | "view-page-favicon-updated" | "view-page-title-updated" | "view-resource-load-failed" | "view-response-received" | "view-child-content-blocked" | "view-child-content-opened-in-browser" | "view-child-view-created" | "view-file-download-started" | "view-file-download-progress" | "view-file-download-completed" | "view-created" | "view-destroyed" | "view-hidden" | "view-hotkey" | "view-shown" | "view-target-changed" | "window-blurred" | "window-certificate-selection-shown" | "window-crashed" | "window-did-change-theme-color" | "window-focused" | "window-navigation-rejected" | "window-url-changed" | "window-did-fail-load" | "window-did-finish-load" | "window-page-favicon-updated" | "window-page-title-updated" | "window-resource-load-failed" | "window-response-received" | "window-child-content-blocked" | "window-child-content-opened-in-browser" | "window-child-view-created" | "window-file-download-started" | "window-file-download-progress" | "window-file-download-completed" | "window-view-attached" | "window-view-detached" | "window-begin-user-bounds-changing" | "window-bounds-changed" | "window-bounds-changing" | "window-closed" | "window-closing" | "window-disabled-movement-bounds-changed" | "window-disabled-movement-bounds-changing" | "window-embedded" | "window-end-user-bounds-changing" | "window-external-process-exited" | "window-external-process-started" | "window-hidden" | "window-hotkey" | "window-initialized" | "window-layout-initialized" | "window-layout-ready" | "window-maximized" | "window-minimized" | "window-options-changed" | "window-performance-report" | "window-preload-script-state-changed" | "window-preload-script-state-changing" | "window-reloaded" | "window-restored" | "window-shown" | "window-user-movement-disabled" | "window-user-movement-enabled" | "window-will-move" | "window-will-redirect" | "window-will-resize" | `app-version-progress.${string}` | `runtime-status.${string}` | `app-version-complete.${string}` | `app-version-error.${string}` | "application-created" | "desktop-icon-clicked" | "system-shutdown" | "application-crashed" | "application-closed" | "application-connected" | "application-initialized" | "application-manifest-changed" | "application-not-responding" | "application-responding" | "application-run-requested" | "application-started" | "application-tray-icon-clicked" | "application-file-download-location-changed" | "idle-state-changed" | "session-changed" | "monitor-info-changed"

    Parameters

    Returns Promise<System>

  • Retrieves the UUID of the computer on which the runtime is installed

    Returns

    Tutorial

    System.resolveUuid

    Parameters

    • uuid: string

      The uuid of the running application

    Returns Promise<ApplicationType>

  • Signals the RVM to perform a health check and returns the results as json.

    Returns

    Tutorial

    System.runRvmHealthCheck

    Returns Promise<string[]>

  • Set the minimum log level above which logs will be written to the OpenFin log

    Returns

    Tutorial

    System.setMinLogLevel

    Parameters

    Returns Promise<void>

  • Shows the Chromium Developer Tools for the specified window

    Returns

    Tutorial

    System.showDeveloperTools

    Parameters

    • identity: Identity

      This is a object that is defined by the Identity interface

    Returns Promise<void>

  • Attempt to close an external process. The process will be terminated if it has not closed after the elapsed timeout in milliseconds.
    Note: This method is restricted by default and must be enabled via API security settings.

    Returns

    Tutorial

    System.terminateExternalProcess

    Parameters

    Returns Promise<void>

  • Update the OpenFin Runtime Proxy settings.

    Returns

    Tutorial

    System.updateProxySettings

    Parameters

    • options: ProxyConfig

      A config object defined in the ProxyConfig interface

    Returns Promise<void>

Generated using TypeDoc