@openfin/core 25.68.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +13 -0
- package/NOTICE +16 -0
- package/OpenFin.d.ts +1340 -0
- package/README.md +41 -0
- package/docs.README(OLD).md +82 -0
- package/fin.d.ts +4 -0
- package/package.json +33 -0
- package/resources/win/OpenFinRVM.exe +0 -0
- package/src/api/application/Factory.d.ts +145 -0
- package/src/api/application/Factory.js +229 -0
- package/src/api/application/Instance.d.ts +302 -0
- package/src/api/application/Instance.js +412 -0
- package/src/api/application/index.d.ts +3 -0
- package/src/api/application/index.js +15 -0
- package/src/api/base.d.ts +43 -0
- package/src/api/base.js +177 -0
- package/src/api/clipboard/index.d.ts +69 -0
- package/src/api/clipboard/index.js +88 -0
- package/src/api/events/application.d.ts +69 -0
- package/src/api/events/application.js +2 -0
- package/src/api/events/base.d.ts +17 -0
- package/src/api/events/base.js +2 -0
- package/src/api/events/channel.d.ts +10 -0
- package/src/api/events/channel.js +2 -0
- package/src/api/events/emitterMap.d.ts +11 -0
- package/src/api/events/emitterMap.js +35 -0
- package/src/api/events/eventAggregator.d.ts +5 -0
- package/src/api/events/eventAggregator.js +43 -0
- package/src/api/events/externalApplication.d.ts +5 -0
- package/src/api/events/externalApplication.js +2 -0
- package/src/api/events/frame.d.ts +9 -0
- package/src/api/events/frame.js +2 -0
- package/src/api/events/globalHotkey.d.ts +10 -0
- package/src/api/events/globalHotkey.js +2 -0
- package/src/api/events/platform.d.ts +18 -0
- package/src/api/events/platform.js +2 -0
- package/src/api/events/system.d.ts +22 -0
- package/src/api/events/system.js +2 -0
- package/src/api/events/view.d.ts +56 -0
- package/src/api/events/view.js +2 -0
- package/src/api/events/webcontents.d.ts +48 -0
- package/src/api/events/webcontents.js +2 -0
- package/src/api/events/window.d.ts +169 -0
- package/src/api/events/window.js +2 -0
- package/src/api/external-application/Factory.d.ts +26 -0
- package/src/api/external-application/Factory.js +40 -0
- package/src/api/external-application/Instance.d.ts +102 -0
- package/src/api/external-application/Instance.js +109 -0
- package/src/api/external-application/index.d.ts +3 -0
- package/src/api/external-application/index.js +15 -0
- package/src/api/fin.d.ts +49 -0
- package/src/api/fin.js +43 -0
- package/src/api/frame/Factory.d.ts +36 -0
- package/src/api/frame/Factory.js +69 -0
- package/src/api/frame/Instance.d.ts +121 -0
- package/src/api/frame/Instance.js +130 -0
- package/src/api/frame/index.d.ts +3 -0
- package/src/api/frame/index.js +15 -0
- package/src/api/global-hotkey/index.d.ts +38 -0
- package/src/api/global-hotkey/index.js +58 -0
- package/src/api/interappbus/channel/channel.d.ts +26 -0
- package/src/api/interappbus/channel/channel.js +77 -0
- package/src/api/interappbus/channel/channels-docs.d.ts +318 -0
- package/src/api/interappbus/channel/channels-docs.js +376 -0
- package/src/api/interappbus/channel/client.d.ts +22 -0
- package/src/api/interappbus/channel/client.js +84 -0
- package/src/api/interappbus/channel/connection-manager.d.ts +28 -0
- package/src/api/interappbus/channel/connection-manager.js +244 -0
- package/src/api/interappbus/channel/index.d.ts +22 -0
- package/src/api/interappbus/channel/index.js +121 -0
- package/src/api/interappbus/channel/protocols/classic/message-receiver.d.ts +13 -0
- package/src/api/interappbus/channel/protocols/classic/message-receiver.js +73 -0
- package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +22 -0
- package/src/api/interappbus/channel/protocols/classic/strategy.js +84 -0
- package/src/api/interappbus/channel/protocols/combined/strategy.d.ts +20 -0
- package/src/api/interappbus/channel/protocols/combined/strategy.js +58 -0
- package/src/api/interappbus/channel/protocols/index.d.ts +44 -0
- package/src/api/interappbus/channel/protocols/index.js +2 -0
- package/src/api/interappbus/channel/protocols/protocol-manager.d.ts +10 -0
- package/src/api/interappbus/channel/protocols/protocol-manager.js +43 -0
- package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +23 -0
- package/src/api/interappbus/channel/protocols/rtc/endpoint.js +135 -0
- package/src/api/interappbus/channel/protocols/rtc/ice-manager.d.ts +30 -0
- package/src/api/interappbus/channel/protocols/rtc/ice-manager.js +131 -0
- package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +22 -0
- package/src/api/interappbus/channel/protocols/rtc/strategy.js +87 -0
- package/src/api/interappbus/channel/protocols/strategy-types.d.ts +13 -0
- package/src/api/interappbus/channel/protocols/strategy-types.js +2 -0
- package/src/api/interappbus/channel/protocols/strategy.d.ts +15 -0
- package/src/api/interappbus/channel/protocols/strategy.js +2 -0
- package/src/api/interappbus/channel/provider.d.ts +31 -0
- package/src/api/interappbus/channel/provider.js +165 -0
- package/src/api/interappbus/index.d.ts +85 -0
- package/src/api/interappbus/index.js +175 -0
- package/src/api/interop/Factory.d.ts +37 -0
- package/src/api/interop/Factory.js +54 -0
- package/src/api/interop/InteropBroker.d.ts +363 -0
- package/src/api/interop/InteropBroker.js +914 -0
- package/src/api/interop/InteropClient.d.ts +268 -0
- package/src/api/interop/InteropClient.js +450 -0
- package/src/api/interop/SessionContextGroupBroker.d.ts +26 -0
- package/src/api/interop/SessionContextGroupBroker.js +107 -0
- package/src/api/interop/SessionContextGroupClient.d.ts +20 -0
- package/src/api/interop/SessionContextGroupClient.js +85 -0
- package/src/api/interop/fdc3/fdc3-1.2.d.ts +187 -0
- package/src/api/interop/fdc3/fdc3-1.2.js +385 -0
- package/src/api/interop/fdc3/fdc3.js +17 -0
- package/src/api/interop/fdc3/utils.d.ts +6 -0
- package/src/api/interop/fdc3/utils.js +17 -0
- package/src/api/interop/index.d.ts +4 -0
- package/src/api/interop/index.js +16 -0
- package/src/api/interop/utils.d.ts +11 -0
- package/src/api/interop/utils.js +36 -0
- package/src/api/me.d.ts +35 -0
- package/src/api/me.js +60 -0
- package/src/api/platform/Factory.d.ts +109 -0
- package/src/api/platform/Factory.js +188 -0
- package/src/api/platform/Instance.d.ts +122 -0
- package/src/api/platform/Instance.js +299 -0
- package/src/api/platform/common-utils.d.ts +6 -0
- package/src/api/platform/common-utils.js +16 -0
- package/src/api/platform/index.d.ts +3 -0
- package/src/api/platform/index.js +15 -0
- package/src/api/platform/layout/Factory.d.ts +108 -0
- package/src/api/platform/layout/Factory.js +189 -0
- package/src/api/platform/layout/Instance.d.ts +48 -0
- package/src/api/platform/layout/Instance.js +99 -0
- package/src/api/platform/layout/index.d.ts +3 -0
- package/src/api/platform/layout/index.js +15 -0
- package/src/api/platform/layout/shapes.d.ts +11 -0
- package/src/api/platform/layout/shapes.js +2 -0
- package/src/api/snapshot-source/Factory.d.ts +36 -0
- package/src/api/snapshot-source/Factory.js +65 -0
- package/src/api/snapshot-source/Instance.d.ts +30 -0
- package/src/api/snapshot-source/Instance.js +134 -0
- package/src/api/snapshot-source/index.d.ts +3 -0
- package/src/api/snapshot-source/index.js +15 -0
- package/src/api/snapshot-source/utils.d.ts +1 -0
- package/src/api/snapshot-source/utils.js +5 -0
- package/src/api/system/application.d.ts +6 -0
- package/src/api/system/application.js +2 -0
- package/src/api/system/entity.d.ts +11 -0
- package/src/api/system/entity.js +2 -0
- package/src/api/system/index.d.ts +957 -0
- package/src/api/system/index.js +1241 -0
- package/src/api/system/installedApps.d.ts +6 -0
- package/src/api/system/installedApps.js +2 -0
- package/src/api/system/log.d.ts +11 -0
- package/src/api/system/log.js +2 -0
- package/src/api/system/process.d.ts +15 -0
- package/src/api/system/process.js +2 -0
- package/src/api/system/proxy.d.ts +15 -0
- package/src/api/system/proxy.js +2 -0
- package/src/api/system/queryPermissionTypes.d.ts +1 -0
- package/src/api/system/queryPermissionTypes.js +2 -0
- package/src/api/system/registry-info.d.ts +7 -0
- package/src/api/system/registry-info.js +2 -0
- package/src/api/system/window.d.ts +16 -0
- package/src/api/system/window.js +2 -0
- package/src/api/view/Factory.d.ts +49 -0
- package/src/api/view/Factory.js +103 -0
- package/src/api/view/Instance.d.ts +379 -0
- package/src/api/view/Instance.js +415 -0
- package/src/api/view/index.d.ts +3 -0
- package/src/api/view/index.js +15 -0
- package/src/api/webcontents/main.d.ts +36 -0
- package/src/api/webcontents/main.js +82 -0
- package/src/api/window/Factory.d.ts +44 -0
- package/src/api/window/Factory.js +91 -0
- package/src/api/window/Instance.d.ts +966 -0
- package/src/api/window/Instance.js +1202 -0
- package/src/api/window/bounds-changed.d.ts +10 -0
- package/src/api/window/bounds-changed.js +6 -0
- package/src/api/window/index.d.ts +5 -0
- package/src/api/window/index.js +17 -0
- package/src/api/window/shapes.d.ts +13 -0
- package/src/api/window/shapes.js +2 -0
- package/src/environment/environment.d.ts +28 -0
- package/src/environment/environment.js +4 -0
- package/src/environment/node-env.d.ts +25 -0
- package/src/environment/node-env.js +64 -0
- package/src/environment/openfin-env.d.ts +29 -0
- package/src/environment/openfin-env.js +105 -0
- package/src/mock.d.ts +4 -0
- package/src/mock.js +91 -0
- package/src/shapes/ERROR_BOX_TYPES.d.ts +6 -0
- package/src/shapes/ERROR_BOX_TYPES.js +10 -0
- package/src/shapes/EntityType.d.ts +1 -0
- package/src/shapes/EntityType.js +2 -0
- package/src/shapes/LayoutPresetType.d.ts +1 -0
- package/src/shapes/LayoutPresetType.js +2 -0
- package/src/shapes/Platform.d.ts +112 -0
- package/src/shapes/Platform.js +16 -0
- package/src/shapes/WebOptions.d.ts +12 -0
- package/src/shapes/WebOptions.js +2 -0
- package/src/shapes/WindowOptions.d.ts +42 -0
- package/src/shapes/WindowOptions.js +2 -0
- package/src/shapes/protocol.d.ts +178 -0
- package/src/shapes/protocol.js +2 -0
- package/src/transport/fin_store.d.ts +4 -0
- package/src/transport/fin_store.js +16 -0
- package/src/transport/transport-errors.d.ts +17 -0
- package/src/transport/transport-errors.js +39 -0
- package/src/transport/transport.d.ts +57 -0
- package/src/transport/transport.js +195 -0
- package/src/transport/wire.d.ts +76 -0
- package/src/transport/wire.js +39 -0
- package/src/util/asyncFilter.d.ts +1 -0
- package/src/util/asyncFilter.js +7 -0
- package/src/util/errors.d.ts +9 -0
- package/src/util/errors.js +14 -0
- package/src/util/exhaustive.d.ts +1 -0
- package/src/util/exhaustive.js +7 -0
- package/src/util/http.d.ts +11 -0
- package/src/util/http.js +83 -0
- package/src/util/normalize-config.d.ts +3 -0
- package/src/util/normalize-config.js +47 -0
- package/src/util/promises.d.ts +5 -0
- package/src/util/promises.js +27 -0
- package/src/util/ref-counter.d.ts +7 -0
- package/src/util/ref-counter.js +51 -0
- package/src/util/runtimeVersioning.d.ts +3 -0
- package/src/util/runtimeVersioning.js +25 -0
- package/src/util/utilTypes.d.ts +8 -0
- package/src/util/utilTypes.js +2 -0
- package/src/util/validate.d.ts +3 -0
- package/src/util/validate.js +11 -0
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { EmitterBase } from '../base';
|
|
2
|
+
import Transport from '../../transport/transport';
|
|
3
|
+
import { ApplicationEvents } from '../events/application';
|
|
4
|
+
/**
|
|
5
|
+
* @classdesc An object representing an application. Allows the developer to create,
|
|
6
|
+
* execute, show/close an application as well as listen to <a href="tutorial-Application.EventEmitter.html">application events</a>.
|
|
7
|
+
* @class
|
|
8
|
+
* @hideconstructor
|
|
9
|
+
*/
|
|
10
|
+
export declare class Application extends EmitterBase<ApplicationEvents> {
|
|
11
|
+
identity: OpenFin.ApplicationIdentity;
|
|
12
|
+
_manifestUrl?: string;
|
|
13
|
+
private window;
|
|
14
|
+
constructor(wire: Transport, identity: OpenFin.ApplicationIdentity);
|
|
15
|
+
private windowListFromIdentityList;
|
|
16
|
+
/**
|
|
17
|
+
* Adds a listener to the end of the listeners array for the specified event.
|
|
18
|
+
* @param { string | symbol } eventType - The type of the event.
|
|
19
|
+
* @param { Function } listener - Called whenever an event of the specified type occurs.
|
|
20
|
+
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
21
|
+
* @return {Promise.<this>}
|
|
22
|
+
* @function addListener
|
|
23
|
+
* @memberof Application
|
|
24
|
+
* @instance
|
|
25
|
+
* @tutorial Application.EventEmitter
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Adds a listener to the end of the listeners array for the specified event.
|
|
29
|
+
* @param { string | symbol } eventType - The type of the event.
|
|
30
|
+
* @param { Function } listener - Called whenever an event of the specified type occurs.
|
|
31
|
+
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
32
|
+
* @return {Promise.<this>}
|
|
33
|
+
* @function on
|
|
34
|
+
* @memberof Application
|
|
35
|
+
* @instance
|
|
36
|
+
* @tutorial Application.EventEmitter
|
|
37
|
+
*/
|
|
38
|
+
/**
|
|
39
|
+
* 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.
|
|
40
|
+
* @param { string | symbol } eventType - The type of the event.
|
|
41
|
+
* @param { Function } listener - The callback function.
|
|
42
|
+
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
43
|
+
* @return {Promise.<this>}
|
|
44
|
+
* @function once
|
|
45
|
+
* @memberof Application
|
|
46
|
+
* @instance
|
|
47
|
+
* @tutorial Application.EventEmitter
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* Adds a listener to the beginning of the listeners array for the specified event.
|
|
51
|
+
* @param { string | symbol } eventType - The type of the event.
|
|
52
|
+
* @param { Function } listener - The callback function.
|
|
53
|
+
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
54
|
+
* @return {Promise.<this>}
|
|
55
|
+
* @function prependListener
|
|
56
|
+
* @memberof Application
|
|
57
|
+
* @instance
|
|
58
|
+
* @tutorial Application.EventEmitter
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* 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.
|
|
62
|
+
* The listener is added to the beginning of the listeners array.
|
|
63
|
+
* @param { string | symbol } eventType - The type of the event.
|
|
64
|
+
* @param { Function } listener - The callback function.
|
|
65
|
+
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
66
|
+
* @return {Promise.<this>}
|
|
67
|
+
* @function prependOnceListener
|
|
68
|
+
* @memberof Application
|
|
69
|
+
* @instance
|
|
70
|
+
* @tutorial Application.EventEmitter
|
|
71
|
+
*/
|
|
72
|
+
/**
|
|
73
|
+
* Remove a listener from the listener array for the specified event.
|
|
74
|
+
* Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
75
|
+
* @param { string | symbol } eventType - The type of the event.
|
|
76
|
+
* @param { Function } listener - The callback function.
|
|
77
|
+
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
78
|
+
* @return {Promise.<this>}
|
|
79
|
+
* @function removeListener
|
|
80
|
+
* @memberof Application
|
|
81
|
+
* @instance
|
|
82
|
+
* @tutorial Application.EventEmitter
|
|
83
|
+
*/
|
|
84
|
+
/**
|
|
85
|
+
* Removes all listeners, or those of the specified event.
|
|
86
|
+
* @param { string | symbol } [eventType] - The type of the event.
|
|
87
|
+
* @return {Promise.<this>}
|
|
88
|
+
* @function removeAllListeners
|
|
89
|
+
* @memberof Application
|
|
90
|
+
* @instance
|
|
91
|
+
* @tutorial Application.EventEmitter
|
|
92
|
+
*/
|
|
93
|
+
/**
|
|
94
|
+
* Determines if the application is currently running.
|
|
95
|
+
* @return {Promise.<boolean>}
|
|
96
|
+
* @tutorial Application.isRunning
|
|
97
|
+
*/
|
|
98
|
+
/**
|
|
99
|
+
* JumpListCategory interface
|
|
100
|
+
* @typedef { object } JumpListCategory
|
|
101
|
+
* @property { string } name The display title for the category. If omitted, items in this category will be placed into the standard 'Tasks' category. There can be only one such category, and it will always be displayed at the bottom of the JumpList.
|
|
102
|
+
* @property { JumpListItem[] } items Array of JumpListItem objects
|
|
103
|
+
*/
|
|
104
|
+
/**
|
|
105
|
+
* JumpListItem interface
|
|
106
|
+
* @typedef { object } JumpListItem
|
|
107
|
+
* @property { string } type One of the following: "task" or "separator". Defaults to task.
|
|
108
|
+
* @property { string } title The text to be displayed for the JumpList Item. Should only be set if type is "task".
|
|
109
|
+
* @property { string } description Description of the task (displayed in a tooltip). Should only be set if type is "task".
|
|
110
|
+
* @property { string } deepLink Deep link to a manifest, i.e: fins://path.to/manifest.json?$$param1=value1. See {@link https://developers.openfin.co/docs/deep-linking deep-linking} for more information.
|
|
111
|
+
* @property { string } iconPath The absolute path to an icon to be displayed for the item, which can be an arbitrary resource file that contains an icon (e.g. .ico, .exe, .dll).
|
|
112
|
+
* @property { number } iconIndex The index of the icon in the resource file. If a resource file contains multiple icons this value can be used to specify the zero-based index of the icon that should be displayed for this task. If a resource file contains only one icon, this property should be set to zero.
|
|
113
|
+
*/
|
|
114
|
+
isRunning(): Promise<boolean>;
|
|
115
|
+
/**
|
|
116
|
+
* Closes the application and any child windows created by the application.
|
|
117
|
+
* Cleans the application from state so it is no longer found in getAllApplications.
|
|
118
|
+
* @param { boolean } [force = false] Close will be prevented from closing when force is false and
|
|
119
|
+
* ‘close-requested’ has been subscribed to for application’s main window.
|
|
120
|
+
* @return {Promise.<boolean>}
|
|
121
|
+
* @tutorial Application.quit
|
|
122
|
+
*/
|
|
123
|
+
quit(force?: boolean): Promise<void>;
|
|
124
|
+
private _close;
|
|
125
|
+
close(force?: boolean): Promise<void>;
|
|
126
|
+
/**
|
|
127
|
+
* Retrieves an array of wrapped fin.Windows for each of the application’s child windows.
|
|
128
|
+
* @return {Promise.Array.<_Window>}
|
|
129
|
+
* @tutorial Application.getChildWindows
|
|
130
|
+
*/
|
|
131
|
+
getChildWindows(): Promise<Array<OpenFin.Window>>;
|
|
132
|
+
/**
|
|
133
|
+
* Retrieves the JSON manifest that was used to create the application. Invokes the error callback
|
|
134
|
+
* if the application was not created from a manifest.
|
|
135
|
+
* @return {Promise.<any>}
|
|
136
|
+
* @tutorial Application.getManifest
|
|
137
|
+
*/
|
|
138
|
+
getManifest(): Promise<any>;
|
|
139
|
+
/**
|
|
140
|
+
* Retrieves UUID of the application that launches this application. Invokes the error callback
|
|
141
|
+
* if the application was created from a manifest.
|
|
142
|
+
* @return {Promise.<string>}
|
|
143
|
+
* @tutorial Application.getParentUuid
|
|
144
|
+
*/
|
|
145
|
+
getParentUuid(): Promise<string>;
|
|
146
|
+
/**
|
|
147
|
+
* Retrieves current application's shortcut configuration.
|
|
148
|
+
* @return {Promise.<ShortCutConfig>}
|
|
149
|
+
* @tutorial Application.getShortcuts
|
|
150
|
+
*/
|
|
151
|
+
getShortcuts(): Promise<OpenFin.ShortCutConfig>;
|
|
152
|
+
/**
|
|
153
|
+
* Retrieves current application's views.
|
|
154
|
+
* @experimental
|
|
155
|
+
* @return {Promise.Array.<View>}
|
|
156
|
+
* @tutorial Application.getViews
|
|
157
|
+
*/
|
|
158
|
+
getViews(): Promise<Array<OpenFin.View>>;
|
|
159
|
+
/**
|
|
160
|
+
* Returns the current zoom level of the application.
|
|
161
|
+
* @return {Promise.<number>}
|
|
162
|
+
* @tutorial Application.getZoomLevel
|
|
163
|
+
*/
|
|
164
|
+
getZoomLevel(): Promise<number>;
|
|
165
|
+
/**
|
|
166
|
+
* Returns an instance of the main Window of the application
|
|
167
|
+
* @return {Promise.<_Window>}
|
|
168
|
+
* @tutorial Application.getWindow
|
|
169
|
+
*/
|
|
170
|
+
getWindow(): Promise<OpenFin.Window>;
|
|
171
|
+
/**
|
|
172
|
+
* Manually registers a user with the licensing service. The only data sent by this call is userName and appName.
|
|
173
|
+
* @param { string } userName - username to be passed to the RVM.
|
|
174
|
+
* @param { string } appName - app name to be passed to the RVM.
|
|
175
|
+
* @return {Promise.<void>}
|
|
176
|
+
* @tutorial Application.registerUser
|
|
177
|
+
*/
|
|
178
|
+
registerUser(userName: string, appName: string): Promise<void>;
|
|
179
|
+
/**
|
|
180
|
+
* Removes the application’s icon from the tray.
|
|
181
|
+
* @return {Promise.<void>}
|
|
182
|
+
* @tutorial Application.removeTrayIcon
|
|
183
|
+
*/
|
|
184
|
+
removeTrayIcon(): Promise<void>;
|
|
185
|
+
/**
|
|
186
|
+
* Restarts the application.
|
|
187
|
+
* @return {Promise.<void>}
|
|
188
|
+
* @tutorial Application.restart
|
|
189
|
+
*/
|
|
190
|
+
restart(): Promise<void>;
|
|
191
|
+
/**
|
|
192
|
+
* DEPRECATED method to run the application.
|
|
193
|
+
* Needed when starting application via {@link Application.create}, but NOT needed when starting via {@link Application.start}.
|
|
194
|
+
* @return {Promise.<void>}
|
|
195
|
+
* @tutorial Application.run
|
|
196
|
+
* @ignore
|
|
197
|
+
*/
|
|
198
|
+
run(): Promise<void>;
|
|
199
|
+
private _run;
|
|
200
|
+
/**
|
|
201
|
+
* Instructs the RVM to schedule one restart of the application.
|
|
202
|
+
* @return {Promise.<void>}
|
|
203
|
+
* @tutorial Application.scheduleRestart
|
|
204
|
+
*/
|
|
205
|
+
scheduleRestart(): Promise<void>;
|
|
206
|
+
/**
|
|
207
|
+
* Sends a message to the RVM to upload the application's logs. On success,
|
|
208
|
+
* an object containing logId is returned.
|
|
209
|
+
* @return {Promise.<LogInfo>}
|
|
210
|
+
* @tutorial Application.sendApplicationLog
|
|
211
|
+
*/
|
|
212
|
+
sendApplicationLog(): Promise<OpenFin.LogInfo>;
|
|
213
|
+
/**
|
|
214
|
+
* Sets or removes a custom JumpList for the application. Only applicable in Windows OS.
|
|
215
|
+
* If categories is null the previously set custom JumpList (if any) will be replaced by the standard JumpList for the app (managed by Windows).
|
|
216
|
+
* Note: If the "name" property is omitted it defaults to "tasks".
|
|
217
|
+
* @param { Array.<JumpListCategory> | null } jumpListCategories An array of JumpList Categories to populate. If null, remove any existing JumpList configuration and set to Windows default.
|
|
218
|
+
* @return { Promise.<void> }
|
|
219
|
+
* @tutorial Application.setJumpList
|
|
220
|
+
*/
|
|
221
|
+
setJumpList(jumpListCategories: OpenFin.JumpListCategory[] | null): Promise<void>;
|
|
222
|
+
/**
|
|
223
|
+
* Adds a customizable icon in the system tray. To listen for a click on the icon use the `tray-icon-clicked` event.
|
|
224
|
+
* @param { string } icon Image URL or base64 encoded string to be used as the icon
|
|
225
|
+
* @return {Promise.<void>}
|
|
226
|
+
* @tutorial Application.setTrayIcon
|
|
227
|
+
*/
|
|
228
|
+
setTrayIcon(icon: string): Promise<void>;
|
|
229
|
+
/**
|
|
230
|
+
* Sets new application's shortcut configuration. Windows only.
|
|
231
|
+
* @param { ShortCutConfig } config New application's shortcut configuration.
|
|
232
|
+
* @param { boolean } [config.desktop] - Enable/disable desktop shortcut.
|
|
233
|
+
* @param { boolean } [config.startMenu] - Enable/disable start menu shortcut.
|
|
234
|
+
* @param { boolean } [config.systemStartup] - Enable/disable system startup shortcut.
|
|
235
|
+
* @return {Promise.<void>}
|
|
236
|
+
* @tutorial Application.setShortcuts
|
|
237
|
+
*/
|
|
238
|
+
setShortcuts(config: OpenFin.ShortCutConfig): Promise<void>;
|
|
239
|
+
/**
|
|
240
|
+
* Sets the query string in all shortcuts for this app. Requires RVM 5.5+.
|
|
241
|
+
* @param { string } queryString The new query string for this app's shortcuts.
|
|
242
|
+
* @return {Promise.<void>}
|
|
243
|
+
* @tutorial Application.setShortcutQueryParams
|
|
244
|
+
*/
|
|
245
|
+
setShortcutQueryParams(queryString: string): Promise<void>;
|
|
246
|
+
/**
|
|
247
|
+
* Sets the zoom level of the application. The original size is 0 and each increment above or below represents zooming 20%
|
|
248
|
+
* larger or smaller to default limits of 300% and 50% of original size, respectively.
|
|
249
|
+
* @param { number } level The zoom level
|
|
250
|
+
* @return {Promise.<void>}
|
|
251
|
+
* @tutorial Application.setZoomLevel
|
|
252
|
+
*/
|
|
253
|
+
setZoomLevel(level: number): Promise<void>;
|
|
254
|
+
/**
|
|
255
|
+
* Sets a username to correlate with App Log Management.
|
|
256
|
+
* @param { string } username Username to correlate with App's Log.
|
|
257
|
+
* @return {Promise.<void>}
|
|
258
|
+
* @tutorial Application.setAppLogUsername
|
|
259
|
+
*/
|
|
260
|
+
setAppLogUsername(username: string): Promise<void>;
|
|
261
|
+
/**
|
|
262
|
+
* @summary Retrieves information about the system tray.
|
|
263
|
+
* @desc The only information currently returned is the position and dimensions.
|
|
264
|
+
* @return {Promise.<TrayInfo>}
|
|
265
|
+
* @tutorial Application.getTrayIconInfo
|
|
266
|
+
*/
|
|
267
|
+
getTrayIconInfo(): Promise<OpenFin.TrayInfo>;
|
|
268
|
+
/**
|
|
269
|
+
* Closes the application by terminating its process.
|
|
270
|
+
* @return {Promise.<void>}
|
|
271
|
+
* @tutorial Application.terminate
|
|
272
|
+
*/
|
|
273
|
+
terminate(): Promise<void>;
|
|
274
|
+
/**
|
|
275
|
+
* Waits for a hanging application. This method can be called in response to an application
|
|
276
|
+
* "not-responding" to allow the application to continue and to generate another "not-responding"
|
|
277
|
+
* message after a certain period of time.
|
|
278
|
+
* @return {Promise.<void>}
|
|
279
|
+
* @ignore
|
|
280
|
+
*/
|
|
281
|
+
wait(): Promise<void>;
|
|
282
|
+
/**
|
|
283
|
+
* Retrieves information about the application.
|
|
284
|
+
* @return {Promise.<ApplicationInfo>}
|
|
285
|
+
* @tutorial Application.getInfo
|
|
286
|
+
*/
|
|
287
|
+
getInfo(): Promise<OpenFin.ApplicationInfo>;
|
|
288
|
+
/**
|
|
289
|
+
* Retrieves all process information for entities (windows and views) associated with an application.
|
|
290
|
+
* @return {Promise.<AppProcessInfo>}
|
|
291
|
+
* @tutorial Application.getProcessInfo
|
|
292
|
+
* @experimental
|
|
293
|
+
*/
|
|
294
|
+
getProcessInfo(): Promise<OpenFin.AppProcessInfo>;
|
|
295
|
+
/**
|
|
296
|
+
* Sets file auto download location.
|
|
297
|
+
* @param { string } downloadLocation file auto download location
|
|
298
|
+
* @return {Promise.<void>}
|
|
299
|
+
* @tutorial Application.setFileDownloadLocation
|
|
300
|
+
*/
|
|
301
|
+
setFileDownloadLocation(downloadLocation: string): Promise<void>;
|
|
302
|
+
}
|