Have you been using our legacy API under the `fin.desktop` object? Welcome to the new and improved V2 API! You can now access the same classes and methods directly on the `fin` object. Please see this guide for the full list of differences and steps to transition from the legacy V1 API to the new V2 API.
Welcome to the JavaScript API. This API allows you to create an HTML/JavaScript application that has access to the native windowing environment, can communicate with other applications and has access to sandboxed system-level features.
The fin
namespace
When running within the OpenFin Runtime your web applications have access to the fin
namespace and all the modules within the API without the need to include additional source files.
You can treat the fin
namespace as you would the window
, navigator
or document
objects.
API Methods
The full API Method Index can be found below.
- To find a specific method by name, simply search this page.
- To browse the API, click one of the classes or namespaces in the sidebar at left.
Configuration
New applications and windows are instantiated by the respective start
and create
calls with the following options objects:
- The Application Options object is consumed by Application.start
- The Window Options object is consumed by Window.create
For a single-page reference to all application settings and configuration options, see also our Application Config page.
Example
<!DOCTYPE html>
<head>
<style>
#status-indicator {
display: inline-block;
height: 10px;
width: 10px;
background-color: red;
border-radius: 20px;
}
#status-indicator.online {
background-color: green;
}
</style>
<script type="text/javascript">
fin.System.getVersion().then(version => {
document.querySelector('#of-version').innerText = version;
});
</script>
</head>
<body>
<p>
OpenFin version <span id="of-version"></span>
</p>
</body>
</html>
Index of API Methods
- addContextHandler Interop
- addContextListener Fdc3
- addContextListener Fdc3v2
- addIntentListener Fdc3
- afterAction ChannelMiddleware
- animate Window
- applyPreset Layout
- applySnapshot Platform
- applySnapshot PlatformProvider
- attach View
- authenticate Window
- beforeAction ChannelMiddleware
- behaviorChange Proxy
- bindToElement View
- blur Window
- bringToFront Window
- broadcast Fdc3
- capturePage View
- capturePage Window
- center Window
- clearCache System
- clientDisconnected Interop
- close Application
- close Window
- closePopupMenu Window
- closeView Platform
- closeView PlatformProvider
- closeWindow Platform
- closeWindow PlatformProvider
- connect Channel
- connectSync Interop
- create Application
- create Channel
- create View
- create Window
- createFromManifest Application
- createPrivateChannel Fdc3v2
- createView Platform
- createWindow Platform
- createWindow PlatformProvider
- deleteCacheOnExit System
- destroy ChannelProvider
- destroy View
- disableUserMovement Window
- disconnect Channel
- dispatch Channel
- dispatchPopupResult Window
- DOMEvents Layout
- downloadAsset System
- downloadPreloadScripts System
- downloadRuntime System
- enableUserMovement Window
- EventEmitter Application
- EventEmitter ExternalApplication
- EventEmitter Frame
- EventEmitter Platform
- EventEmitter System
- EventEmitter View
- EventEmitter Window
- executeJavaScript View
- executeJavaScript Window
- exit System
- fetchManifest Platform
- fetchManifest PlatformProvider
- fetchManifest System
- findInPage View
- findInPage Window
- findInstances Fdc3v2
- findIntent Fdc3
- findIntentsByContext Fdc3
- findIntentsByContext Fdc3v2
- fireIntent Interop
- fireIntentForContext Interop
- flash Window
- flushCookieStore System
- focus View
- focus Window
- getAllApplications System
- getAllClientInfo Channel
- getAllClientInfo Interop
- getAllClientsInContextGroup Interop
- getAllExternalApplications System
- getAllFrames Window
- getAllProcessInfo System
- getAllWindows System
- getAppAssetInfo System
- getAppMetadata Fdc3v2
- getAvailableFormats Clipboard
- getBounds View
- getBounds Window
- getChildWindows Application
- getCommandLineArguments System
- getConfig Layout
- getContextGroups Interop
- getCookies System
- getCrashReporterState System
- getCurrent Application
- getCurrent Frame
- getCurrent Layout
- getCurrent Platform
- getCurrent View
- getCurrent Window
- getCurrentChannel Fdc3
- getCurrentContext Interop
- getCurrentSync Application
- getCurrentSync Frame
- getCurrentSync Layout
- getCurrentSync Platform
- getCurrentSync View
- getCurrentSync Window
- getCurrentViews Window
- getCurrentWindow View
- getEntityInfo System
- getEnvironmentVariable System
- getFocusedWindow System
- getHostSpecs System
- getInfo Application
- getInfo ExternalApplication
- getInfo Fdc3
- getInfo Fdc3v2
- getInfo Frame
- getInfo View
- getInfo Window
- getInfoForContextGroup Interop
- getInfoForIntent Interop
- getInfoForIntentsByContext Interop
- getInstalledRuntimes System
- getLayout Window
- getLog System
- getLogList System
- getMachineId System
- getManifest Application
- getMinLogLevel System
- getMonitorInfo System
- getMousePosition System
- getNativeId Window
- getOptions View
- getOptions Window
- getOrCreateChannel Fdc3
- getParentApplication Window
- getParentLayout View
- getParentUuid Application
- getParentWindow Frame
- getParentWindow Window
- getPrinters System
- getPrinters View
- getPrinters Window
- getProcessInfo Application
- getProcessInfo View
- getProcessInfo Window
- getProcessList System
- getProxySettings System
- getRuntimeInfo System
- getRvmInfo System
- getSharedWorkers View
- getSharedWorkers Window
- getShortcuts Application
- getSnapshot Platform
- getSnapshot PlatformProvider
- getState Window
- getSystemChannels Fdc3
- getTrayIconInfo Application
- getUniqueUserId System
- getUserChannels Fdc3v2
- getUserDecisionForBeforeUnload PlatformProvider
- getVersion System
- getViewSnapshot Platform
- getViewSnapshot PlatformProvider
- getWebWindow Window
- getWindow Application
- getWindowContext Platform
- getWindowContext PlatformProvider
- getZoomLevel Application
- getZoomLevel View
- getZoomLevel Window
- handleFiredIntent Interop
- handleFiredIntentForContext Interop
- handleInfoForIntent Interop
- handleInfoForIntentsByContext Interop
- hasTrayIcon Application
- hide View
- hide Window
- init Interop
- init Layout
- init Platform
- init SnapshotSource
- inspectServiceWorker View
- inspectServiceWorker Window
- inspectSharedWorker View
- inspectSharedWorker Window
- inspectSharedWorkerById View
- inspectSharedWorkerById Window
- invokeContextHandler Interop
- invokeIntentHandler Interop
- isAppCertified System
- isMainWindow Window
- isRegistered GlobalHotkey
- isRunning Application
- isShowing Window
- joinChannel Fdc3
- joinContextGroup Interop
- joinSessionContextGroup Interop
- joinUserChannel Fdc3v2
- launchContentManifest Platform
- launchExternalProcess System
- launchManifest System
- leaveCurrentChannel Fdc3
- log System
- maximize Window
- minimize Window
- monitorExternalProcess System
- moveBy Window
- moveTo Window
- navigate View
- navigate Window
- navigateBack View
- navigateBack Window
- navigateForward View
- navigateForward Window
- onChannelConnect Channel
- onChannelDisconnect Channel
- onConnection ChannelProvider
- onDisconnection Channel
- onDisconnection Interop
- onError ChannelMiddleware
- open Fdc3
- openUrlWithBrowser System
- positionOutOfBoundsWindows PlatformProvider
- print View
- print Window
- publish ChannelProvider
- publish InterApplicationBus
- queryPermissionForCurrentContext System
- quit Application
- quit Platform
- quit PlatformProvider
- raiseIntent Fdc3
- raiseIntent Fdc3v2
- raiseIntentForContext Fdc3
- raiseIntentForContext Fdc3v2
- readHtml Clipboard
- readRegistryValue System
- readRtf Clipboard
- readText Clipboard
- ready SnapshotSource
- register Channel
- register GlobalHotkey
- registerExternalConnection System
- registerIntentHandler Interop
- registerUsage System
- registerUser Application
- releaseExternalProcess System
- reload View
- reload Window
- remove Channel
- removeFromContextGroup Interop
- removeTrayIcon Application
- replace Layout
- replaceLayout PlatformProvider
- replaceView Layout
- resizeBy Window
- resizeTo Window
- resolveUuid System
- restart Application
- restore Window
- run Application
- runRvmHealthCheck System
- scheduleRestart Application
- send InterApplicationBus
- sendApplicationLog Application
- setAppLogUsername Application
- setAsForeground Window
- setBounds View
- setBounds Window
- setContext Interop
- setCustomWindowHandler View
- setDefaultAction ChannelMiddleware
- setFileDownloadLocation Application
- setJumpList Application
- setMinLogLevel System
- setShortcutQueryParams Application
- setShortcuts Application
- setTrayIcon Application
- setWindowContext Platform
- setWindowContext PlatformProvider
- setZoomLevel Application
- setZoomLevel View
- setZoomLevel Window
- show View
- show Window
- showAt Window
- showDeveloperTools System
- showDeveloperTools View
- showDeveloperTools Window
- showPopupMenu Window
- showPopupWindow View
- showPopupWindow Window
- start Application
- start Platform
- startCrashReporter System
- startFromManifest Application
- startFromManifest Platform
- startManyManifests Application
- stopFindInPage View
- stopFindInPage Window
- stopFlashing Window
- stopNavigation View
- stopNavigation Window
- subscribe InterApplicationBus
- terminate Application
- terminateExternalProcess System
- triggerBeforeUnload View
- unregister GlobalHotkey
- unregisterAll GlobalHotkey
- unsubscribe InterApplicationBus
- updateOptions View
- updateOptions Window
- updateProxySettings System
- wrap Application
- wrap ExternalApplication
- wrap Frame
- wrap Layout
- wrap Platform
- wrap SnapshotSource
- wrap View
- wrap Window
- wrapSync Application
- wrapSync ExternalApplication
- wrapSync Frame
- wrapSync Layout
- wrapSync Platform
- wrapSync SnapshotSource
- wrapSync View
- wrapSync Window
- write Clipboard
- writeHtml Clipboard
- writeRtf Clipboard
- writeText Clipboard