@openfin/fdc3-api 40.101.1 → 40.102.1
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/out/fdc3-api-alpha.d.ts +34 -6
- package/out/fdc3-api-beta.d.ts +34 -6
- package/out/fdc3-api-public.d.ts +34 -6
- package/out/fdc3-api.d.ts +34 -6
- package/package.json +1 -1
package/out/fdc3-api-alpha.d.ts
CHANGED
|
@@ -6020,6 +6020,30 @@ declare type FrameProcessDetails = ProcessDetails & {
|
|
|
6020
6020
|
entityType: string;
|
|
6021
6021
|
};
|
|
6022
6022
|
|
|
6023
|
+
/**
|
|
6024
|
+
* @interface
|
|
6025
|
+
* Options for the {@link Window._Window.getBounds} method.
|
|
6026
|
+
*/
|
|
6027
|
+
declare interface GetBoundsOptions {
|
|
6028
|
+
/**
|
|
6029
|
+
* Specifies the state of the window for which to retrieve the bounds.
|
|
6030
|
+
*
|
|
6031
|
+
* - `'normal'`: Returns the bounds of the window in its 'normal' state (not maximized or minimized).
|
|
6032
|
+
* - `'current'`: Returns the bounds of the window in its current state. For a minimized window, this returns the bounds from its previous state before being minimized.
|
|
6033
|
+
*
|
|
6034
|
+
* If a window is in `normal` state, `current` and `normal` will return the same bounds.
|
|
6035
|
+
*
|
|
6036
|
+
* If a window is `maximized`, `current` will return the dimensions of the screen while `normal` will return the bounds the window will be restored to.
|
|
6037
|
+
*
|
|
6038
|
+
* If a window is `minimized`, both `current` and `normal` will return the bounds of the window prior to it being minimized.
|
|
6039
|
+
*
|
|
6040
|
+
* **Edge case:** On MacOS, if a window is maximized, then minimized, calling `getBounds` with `boundsType: 'current'` will return the bounds of the window when it was maximized while `normal` will return the normal bounds.
|
|
6041
|
+
*
|
|
6042
|
+
* @default 'normal'
|
|
6043
|
+
*/
|
|
6044
|
+
boundsType?: 'normal' | 'current';
|
|
6045
|
+
}
|
|
6046
|
+
|
|
6023
6047
|
/**
|
|
6024
6048
|
* @interface
|
|
6025
6049
|
*/
|
|
@@ -7927,7 +7951,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
|
7927
7951
|
*
|
|
7928
7952
|
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
|
7929
7953
|
*
|
|
7930
|
-
* ####
|
|
7954
|
+
* #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
|
|
7931
7955
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
7932
7956
|
* @example
|
|
7933
7957
|
* ```js
|
|
@@ -7944,7 +7968,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
|
7944
7968
|
* });
|
|
7945
7969
|
* ```
|
|
7946
7970
|
*
|
|
7947
|
-
* ####
|
|
7971
|
+
* #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
|
|
7948
7972
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
7949
7973
|
* @example
|
|
7950
7974
|
* ```js
|
|
@@ -8208,7 +8232,7 @@ declare class Layout extends Base {
|
|
|
8208
8232
|
*/
|
|
8209
8233
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
|
8210
8234
|
/**
|
|
8211
|
-
* Adds a view to the platform layout. Behaves like @link
|
|
8235
|
+
* Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
|
|
8212
8236
|
*
|
|
8213
8237
|
* @param viewOptions - The options for creating the view.
|
|
8214
8238
|
* @param options - Optional parameters for adding the view.
|
|
@@ -8224,7 +8248,7 @@ declare class Layout extends Base {
|
|
|
8224
8248
|
}>;
|
|
8225
8249
|
/**
|
|
8226
8250
|
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
8227
|
-
* Behaves like @link
|
|
8251
|
+
* Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
|
|
8228
8252
|
*
|
|
8229
8253
|
* @param viewIdentity - The identity of the view to close.
|
|
8230
8254
|
* @returns A promise that resolves when the view is closed.
|
|
@@ -9638,6 +9662,7 @@ declare namespace OpenFin {
|
|
|
9638
9662
|
EntityType_4 as EntityType,
|
|
9639
9663
|
Bounds,
|
|
9640
9664
|
WindowBounds,
|
|
9665
|
+
GetBoundsOptions,
|
|
9641
9666
|
Rectangle,
|
|
9642
9667
|
ApplicationCreationOptions,
|
|
9643
9668
|
TimeZones,
|
|
@@ -12321,7 +12346,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
|
12321
12346
|
options: OpenFin.TransitionOptions;
|
|
12322
12347
|
}>;
|
|
12323
12348
|
'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
|
|
12324
|
-
'get-window-bounds': IdentityCall<{
|
|
12349
|
+
'get-window-bounds': IdentityCall<{
|
|
12350
|
+
options?: OpenFin.GetBoundsOptions;
|
|
12351
|
+
}, OpenFin.WindowBounds>;
|
|
12325
12352
|
'center-window': IdentityCall;
|
|
12326
12353
|
'blur-window': IdentityCall;
|
|
12327
12354
|
'bring-window-to-front': IdentityCall;
|
|
@@ -13699,6 +13726,7 @@ declare type Snapshot = {
|
|
|
13699
13726
|
declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
|
|
13700
13727
|
topic: 'application';
|
|
13701
13728
|
type: 'platform-snapshot-applied';
|
|
13729
|
+
snapshot: Snapshot;
|
|
13702
13730
|
};
|
|
13703
13731
|
|
|
13704
13732
|
/**
|
|
@@ -17911,7 +17939,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
17911
17939
|
* getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
|
|
17912
17940
|
* ```
|
|
17913
17941
|
*/
|
|
17914
|
-
getBounds(): Promise<OpenFin.WindowBounds>;
|
|
17942
|
+
getBounds(options?: OpenFin.GetBoundsOptions): Promise<OpenFin.WindowBounds>;
|
|
17915
17943
|
/**
|
|
17916
17944
|
* Centers the window on its current screen.
|
|
17917
17945
|
*
|
package/out/fdc3-api-beta.d.ts
CHANGED
|
@@ -6020,6 +6020,30 @@ declare type FrameProcessDetails = ProcessDetails & {
|
|
|
6020
6020
|
entityType: string;
|
|
6021
6021
|
};
|
|
6022
6022
|
|
|
6023
|
+
/**
|
|
6024
|
+
* @interface
|
|
6025
|
+
* Options for the {@link Window._Window.getBounds} method.
|
|
6026
|
+
*/
|
|
6027
|
+
declare interface GetBoundsOptions {
|
|
6028
|
+
/**
|
|
6029
|
+
* Specifies the state of the window for which to retrieve the bounds.
|
|
6030
|
+
*
|
|
6031
|
+
* - `'normal'`: Returns the bounds of the window in its 'normal' state (not maximized or minimized).
|
|
6032
|
+
* - `'current'`: Returns the bounds of the window in its current state. For a minimized window, this returns the bounds from its previous state before being minimized.
|
|
6033
|
+
*
|
|
6034
|
+
* If a window is in `normal` state, `current` and `normal` will return the same bounds.
|
|
6035
|
+
*
|
|
6036
|
+
* If a window is `maximized`, `current` will return the dimensions of the screen while `normal` will return the bounds the window will be restored to.
|
|
6037
|
+
*
|
|
6038
|
+
* If a window is `minimized`, both `current` and `normal` will return the bounds of the window prior to it being minimized.
|
|
6039
|
+
*
|
|
6040
|
+
* **Edge case:** On MacOS, if a window is maximized, then minimized, calling `getBounds` with `boundsType: 'current'` will return the bounds of the window when it was maximized while `normal` will return the normal bounds.
|
|
6041
|
+
*
|
|
6042
|
+
* @default 'normal'
|
|
6043
|
+
*/
|
|
6044
|
+
boundsType?: 'normal' | 'current';
|
|
6045
|
+
}
|
|
6046
|
+
|
|
6023
6047
|
/**
|
|
6024
6048
|
* @interface
|
|
6025
6049
|
*/
|
|
@@ -7927,7 +7951,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
|
7927
7951
|
*
|
|
7928
7952
|
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
|
7929
7953
|
*
|
|
7930
|
-
* ####
|
|
7954
|
+
* #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
|
|
7931
7955
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
7932
7956
|
* @example
|
|
7933
7957
|
* ```js
|
|
@@ -7944,7 +7968,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
|
7944
7968
|
* });
|
|
7945
7969
|
* ```
|
|
7946
7970
|
*
|
|
7947
|
-
* ####
|
|
7971
|
+
* #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
|
|
7948
7972
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
7949
7973
|
* @example
|
|
7950
7974
|
* ```js
|
|
@@ -8208,7 +8232,7 @@ declare class Layout extends Base {
|
|
|
8208
8232
|
*/
|
|
8209
8233
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
|
8210
8234
|
/**
|
|
8211
|
-
* Adds a view to the platform layout. Behaves like @link
|
|
8235
|
+
* Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
|
|
8212
8236
|
*
|
|
8213
8237
|
* @param viewOptions - The options for creating the view.
|
|
8214
8238
|
* @param options - Optional parameters for adding the view.
|
|
@@ -8224,7 +8248,7 @@ declare class Layout extends Base {
|
|
|
8224
8248
|
}>;
|
|
8225
8249
|
/**
|
|
8226
8250
|
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
8227
|
-
* Behaves like @link
|
|
8251
|
+
* Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
|
|
8228
8252
|
*
|
|
8229
8253
|
* @param viewIdentity - The identity of the view to close.
|
|
8230
8254
|
* @returns A promise that resolves when the view is closed.
|
|
@@ -9638,6 +9662,7 @@ declare namespace OpenFin {
|
|
|
9638
9662
|
EntityType_4 as EntityType,
|
|
9639
9663
|
Bounds,
|
|
9640
9664
|
WindowBounds,
|
|
9665
|
+
GetBoundsOptions,
|
|
9641
9666
|
Rectangle,
|
|
9642
9667
|
ApplicationCreationOptions,
|
|
9643
9668
|
TimeZones,
|
|
@@ -12321,7 +12346,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
|
12321
12346
|
options: OpenFin.TransitionOptions;
|
|
12322
12347
|
}>;
|
|
12323
12348
|
'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
|
|
12324
|
-
'get-window-bounds': IdentityCall<{
|
|
12349
|
+
'get-window-bounds': IdentityCall<{
|
|
12350
|
+
options?: OpenFin.GetBoundsOptions;
|
|
12351
|
+
}, OpenFin.WindowBounds>;
|
|
12325
12352
|
'center-window': IdentityCall;
|
|
12326
12353
|
'blur-window': IdentityCall;
|
|
12327
12354
|
'bring-window-to-front': IdentityCall;
|
|
@@ -13699,6 +13726,7 @@ declare type Snapshot = {
|
|
|
13699
13726
|
declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
|
|
13700
13727
|
topic: 'application';
|
|
13701
13728
|
type: 'platform-snapshot-applied';
|
|
13729
|
+
snapshot: Snapshot;
|
|
13702
13730
|
};
|
|
13703
13731
|
|
|
13704
13732
|
/**
|
|
@@ -17911,7 +17939,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
17911
17939
|
* getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
|
|
17912
17940
|
* ```
|
|
17913
17941
|
*/
|
|
17914
|
-
getBounds(): Promise<OpenFin.WindowBounds>;
|
|
17942
|
+
getBounds(options?: OpenFin.GetBoundsOptions): Promise<OpenFin.WindowBounds>;
|
|
17915
17943
|
/**
|
|
17916
17944
|
* Centers the window on its current screen.
|
|
17917
17945
|
*
|
package/out/fdc3-api-public.d.ts
CHANGED
|
@@ -6020,6 +6020,30 @@ declare type FrameProcessDetails = ProcessDetails & {
|
|
|
6020
6020
|
entityType: string;
|
|
6021
6021
|
};
|
|
6022
6022
|
|
|
6023
|
+
/**
|
|
6024
|
+
* @interface
|
|
6025
|
+
* Options for the {@link Window._Window.getBounds} method.
|
|
6026
|
+
*/
|
|
6027
|
+
declare interface GetBoundsOptions {
|
|
6028
|
+
/**
|
|
6029
|
+
* Specifies the state of the window for which to retrieve the bounds.
|
|
6030
|
+
*
|
|
6031
|
+
* - `'normal'`: Returns the bounds of the window in its 'normal' state (not maximized or minimized).
|
|
6032
|
+
* - `'current'`: Returns the bounds of the window in its current state. For a minimized window, this returns the bounds from its previous state before being minimized.
|
|
6033
|
+
*
|
|
6034
|
+
* If a window is in `normal` state, `current` and `normal` will return the same bounds.
|
|
6035
|
+
*
|
|
6036
|
+
* If a window is `maximized`, `current` will return the dimensions of the screen while `normal` will return the bounds the window will be restored to.
|
|
6037
|
+
*
|
|
6038
|
+
* If a window is `minimized`, both `current` and `normal` will return the bounds of the window prior to it being minimized.
|
|
6039
|
+
*
|
|
6040
|
+
* **Edge case:** On MacOS, if a window is maximized, then minimized, calling `getBounds` with `boundsType: 'current'` will return the bounds of the window when it was maximized while `normal` will return the normal bounds.
|
|
6041
|
+
*
|
|
6042
|
+
* @default 'normal'
|
|
6043
|
+
*/
|
|
6044
|
+
boundsType?: 'normal' | 'current';
|
|
6045
|
+
}
|
|
6046
|
+
|
|
6023
6047
|
/**
|
|
6024
6048
|
* @interface
|
|
6025
6049
|
*/
|
|
@@ -7927,7 +7951,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
|
7927
7951
|
*
|
|
7928
7952
|
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
|
7929
7953
|
*
|
|
7930
|
-
* ####
|
|
7954
|
+
* #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
|
|
7931
7955
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
7932
7956
|
* @example
|
|
7933
7957
|
* ```js
|
|
@@ -7944,7 +7968,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
|
7944
7968
|
* });
|
|
7945
7969
|
* ```
|
|
7946
7970
|
*
|
|
7947
|
-
* ####
|
|
7971
|
+
* #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
|
|
7948
7972
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
7949
7973
|
* @example
|
|
7950
7974
|
* ```js
|
|
@@ -8208,7 +8232,7 @@ declare class Layout extends Base {
|
|
|
8208
8232
|
*/
|
|
8209
8233
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
|
8210
8234
|
/**
|
|
8211
|
-
* Adds a view to the platform layout. Behaves like @link
|
|
8235
|
+
* Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
|
|
8212
8236
|
*
|
|
8213
8237
|
* @param viewOptions - The options for creating the view.
|
|
8214
8238
|
* @param options - Optional parameters for adding the view.
|
|
@@ -8224,7 +8248,7 @@ declare class Layout extends Base {
|
|
|
8224
8248
|
}>;
|
|
8225
8249
|
/**
|
|
8226
8250
|
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
8227
|
-
* Behaves like @link
|
|
8251
|
+
* Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
|
|
8228
8252
|
*
|
|
8229
8253
|
* @param viewIdentity - The identity of the view to close.
|
|
8230
8254
|
* @returns A promise that resolves when the view is closed.
|
|
@@ -9638,6 +9662,7 @@ declare namespace OpenFin {
|
|
|
9638
9662
|
EntityType_4 as EntityType,
|
|
9639
9663
|
Bounds,
|
|
9640
9664
|
WindowBounds,
|
|
9665
|
+
GetBoundsOptions,
|
|
9641
9666
|
Rectangle,
|
|
9642
9667
|
ApplicationCreationOptions,
|
|
9643
9668
|
TimeZones,
|
|
@@ -12321,7 +12346,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
|
12321
12346
|
options: OpenFin.TransitionOptions;
|
|
12322
12347
|
}>;
|
|
12323
12348
|
'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
|
|
12324
|
-
'get-window-bounds': IdentityCall<{
|
|
12349
|
+
'get-window-bounds': IdentityCall<{
|
|
12350
|
+
options?: OpenFin.GetBoundsOptions;
|
|
12351
|
+
}, OpenFin.WindowBounds>;
|
|
12325
12352
|
'center-window': IdentityCall;
|
|
12326
12353
|
'blur-window': IdentityCall;
|
|
12327
12354
|
'bring-window-to-front': IdentityCall;
|
|
@@ -13699,6 +13726,7 @@ declare type Snapshot = {
|
|
|
13699
13726
|
declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
|
|
13700
13727
|
topic: 'application';
|
|
13701
13728
|
type: 'platform-snapshot-applied';
|
|
13729
|
+
snapshot: Snapshot;
|
|
13702
13730
|
};
|
|
13703
13731
|
|
|
13704
13732
|
/**
|
|
@@ -17911,7 +17939,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
17911
17939
|
* getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
|
|
17912
17940
|
* ```
|
|
17913
17941
|
*/
|
|
17914
|
-
getBounds(): Promise<OpenFin.WindowBounds>;
|
|
17942
|
+
getBounds(options?: OpenFin.GetBoundsOptions): Promise<OpenFin.WindowBounds>;
|
|
17915
17943
|
/**
|
|
17916
17944
|
* Centers the window on its current screen.
|
|
17917
17945
|
*
|
package/out/fdc3-api.d.ts
CHANGED
|
@@ -6108,6 +6108,30 @@ declare type FrameProcessDetails = ProcessDetails & {
|
|
|
6108
6108
|
entityType: string;
|
|
6109
6109
|
};
|
|
6110
6110
|
|
|
6111
|
+
/**
|
|
6112
|
+
* @interface
|
|
6113
|
+
* Options for the {@link Window._Window.getBounds} method.
|
|
6114
|
+
*/
|
|
6115
|
+
declare interface GetBoundsOptions {
|
|
6116
|
+
/**
|
|
6117
|
+
* Specifies the state of the window for which to retrieve the bounds.
|
|
6118
|
+
*
|
|
6119
|
+
* - `'normal'`: Returns the bounds of the window in its 'normal' state (not maximized or minimized).
|
|
6120
|
+
* - `'current'`: Returns the bounds of the window in its current state. For a minimized window, this returns the bounds from its previous state before being minimized.
|
|
6121
|
+
*
|
|
6122
|
+
* If a window is in `normal` state, `current` and `normal` will return the same bounds.
|
|
6123
|
+
*
|
|
6124
|
+
* If a window is `maximized`, `current` will return the dimensions of the screen while `normal` will return the bounds the window will be restored to.
|
|
6125
|
+
*
|
|
6126
|
+
* If a window is `minimized`, both `current` and `normal` will return the bounds of the window prior to it being minimized.
|
|
6127
|
+
*
|
|
6128
|
+
* **Edge case:** On MacOS, if a window is maximized, then minimized, calling `getBounds` with `boundsType: 'current'` will return the bounds of the window when it was maximized while `normal` will return the normal bounds.
|
|
6129
|
+
*
|
|
6130
|
+
* @default 'normal'
|
|
6131
|
+
*/
|
|
6132
|
+
boundsType?: 'normal' | 'current';
|
|
6133
|
+
}
|
|
6134
|
+
|
|
6111
6135
|
/**
|
|
6112
6136
|
* @interface
|
|
6113
6137
|
*/
|
|
@@ -8044,7 +8068,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
|
8044
8068
|
*
|
|
8045
8069
|
* @remarks The built-in event emitter is not an OpenFin event emitter so it doesn't share propagation semantics.
|
|
8046
8070
|
*
|
|
8047
|
-
* ####
|
|
8071
|
+
* #### [addEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
|
|
8048
8072
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
8049
8073
|
* @example
|
|
8050
8074
|
* ```js
|
|
@@ -8061,7 +8085,7 @@ declare type LaunchIntoPlatformPayload = {
|
|
|
8061
8085
|
* });
|
|
8062
8086
|
* ```
|
|
8063
8087
|
*
|
|
8064
|
-
* ####
|
|
8088
|
+
* #### [removeEventListener(type, listener [, options]);](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)
|
|
8065
8089
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
8066
8090
|
* @example
|
|
8067
8091
|
* ```js
|
|
@@ -8334,7 +8358,7 @@ declare class Layout extends Base {
|
|
|
8334
8358
|
*/
|
|
8335
8359
|
applyPreset: (options: PresetLayoutOptions) => Promise<void>;
|
|
8336
8360
|
/**
|
|
8337
|
-
* Adds a view to the platform layout. Behaves like @link
|
|
8361
|
+
* Adds a view to the platform layout. Behaves like {@link Platform#createView Platform.createView} with the current layout as the target.
|
|
8338
8362
|
*
|
|
8339
8363
|
* @param viewOptions - The options for creating the view.
|
|
8340
8364
|
* @param options - Optional parameters for adding the view.
|
|
@@ -8350,7 +8374,7 @@ declare class Layout extends Base {
|
|
|
8350
8374
|
}>;
|
|
8351
8375
|
/**
|
|
8352
8376
|
* Closes a view by its identity. Throws an error if the view does not belong to the current layout.
|
|
8353
|
-
* Behaves like @link
|
|
8377
|
+
* Behaves like {@link Platform#closeView Platform.closeView} but only closes the view if it belongs the current layout.
|
|
8354
8378
|
*
|
|
8355
8379
|
* @param viewIdentity - The identity of the view to close.
|
|
8356
8380
|
* @returns A promise that resolves when the view is closed.
|
|
@@ -9956,6 +9980,7 @@ declare namespace OpenFin {
|
|
|
9956
9980
|
EntityType_4 as EntityType,
|
|
9957
9981
|
Bounds,
|
|
9958
9982
|
WindowBounds,
|
|
9983
|
+
GetBoundsOptions,
|
|
9959
9984
|
Rectangle,
|
|
9960
9985
|
ApplicationCreationOptions,
|
|
9961
9986
|
TimeZones,
|
|
@@ -12722,7 +12747,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
|
12722
12747
|
options: OpenFin.TransitionOptions;
|
|
12723
12748
|
}>;
|
|
12724
12749
|
'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
|
|
12725
|
-
'get-window-bounds': IdentityCall<{
|
|
12750
|
+
'get-window-bounds': IdentityCall<{
|
|
12751
|
+
options?: OpenFin.GetBoundsOptions;
|
|
12752
|
+
}, OpenFin.WindowBounds>;
|
|
12726
12753
|
'center-window': IdentityCall;
|
|
12727
12754
|
'blur-window': IdentityCall;
|
|
12728
12755
|
'bring-window-to-front': IdentityCall;
|
|
@@ -14100,6 +14127,7 @@ declare type Snapshot = {
|
|
|
14100
14127
|
declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
|
|
14101
14128
|
topic: 'application';
|
|
14102
14129
|
type: 'platform-snapshot-applied';
|
|
14130
|
+
snapshot: Snapshot;
|
|
14103
14131
|
};
|
|
14104
14132
|
|
|
14105
14133
|
/**
|
|
@@ -18365,7 +18393,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
18365
18393
|
* getBounds().then(bounds => console.log(bounds)).catch(err => console.log(err));
|
|
18366
18394
|
* ```
|
|
18367
18395
|
*/
|
|
18368
|
-
getBounds(): Promise<OpenFin.WindowBounds>;
|
|
18396
|
+
getBounds(options?: OpenFin.GetBoundsOptions): Promise<OpenFin.WindowBounds>;
|
|
18369
18397
|
/**
|
|
18370
18398
|
* Centers the window on its current screen.
|
|
18371
18399
|
*
|