/ fm / liveswitch / DomLayoutManager
Class: DomLayoutManager
fm.liveswitch.DomLayoutManager
Hierarchy
LayoutManager<HTMLElement>
↳ DomLayoutManager
Table of contents
Constructors
Methods
- addOnLayout
- addOnPluginVideoSizeChange
- addOnVideoSizeChange
- addOnWebRtcVideoSizeChange
- addRemoteMedia
- addRemoteView
- addRemoteViews
- addView
- applyPreset
- calculateLayout
- collectionToArray
- copyToPreset
- destroy
- destroyInnerContainer
- dispatchToMainThread
- doGetLocalView
- doGetRemoteViews
- doGetRemoteViewsIds
- getAlignment
- getBlockHeight
- getBlockHeightPercent
- getBlockMarginX
- getBlockMarginXPercent
- getBlockMarginY
- getBlockMarginYPercent
- getBlockWidth
- getBlockWidthPercent
- getContainer
- getDirection
- getDynamicProperties
- getDynamicValue
- getFloatHeight
- getFloatHeightPercent
- getFloatMarginX
- getFloatMarginXPercent
- getFloatMarginY
- getFloatMarginYPercent
- getFloatWidth
- getFloatWidthPercent
- getHorizontalScrollbarHeight
- getInlineMargin
- getLayout
- getLayoutOrigin
- getLocalView
- getMode
- getParentView
- getParentViews
- getPluginVideoSize
- getRemoteView
- getRemoteViewIds
- getRemoteViews
- getTypeString
- getVerticalScrollbarWidth
- getVideoSize
- getViewsByClassName
- getWebRtcVideoSize
- initializeInnerContainer
- layout
- layoutOnMainThread
- removeOnLayout
- removeRemoteMedia
- removeRemoteView
- removeRemoteViews
- removeView
- reset
- setAlignment
- setBlockHeight
- setBlockHeightPercent
- setBlockMarginX
- setBlockMarginXPercent
- setBlockMarginY
- setBlockMarginYPercent
- setBlockWidth
- setBlockWidthPercent
- setDirection
- setDynamicValue
- setFloatHeight
- setFloatHeightPercent
- setFloatMarginX
- setFloatMarginXPercent
- setFloatMarginY
- setFloatMarginYPercent
- setFloatWidth
- setFloatWidthPercent
- setInlineMargin
- setLayoutOrigin
- setLocalMedia
- setLocalView
- setMode
- swapRemoteMedia
- swapRemoteView
- swapRemoteViews
- unsetDynamicValue
- unsetLocalView
- getFacetime
- getGoogleHangouts
- getSkype
Constructors
constructor
+ new DomLayoutManager(container
: HTMLElement, preset?
: LayoutPreset): DomLayoutManager
Parameters:
Name | Type |
---|---|
container |
HTMLElement |
preset? |
LayoutPreset |
Returns: DomLayoutManager
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:34
Methods
addOnLayout
▸ addOnLayout(value
: IAction1<Layout>): void
Adds a handler that is raised when a layout is calculated.
Parameters:
Name | Type |
---|---|
value |
IAction1<Layout> |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:91
addOnPluginVideoSizeChange
▸ Private
addOnPluginVideoSizeChange(view
: HTMLElement, handler
: IAction1<Size>): IAction0
Parameters:
Name | Type |
---|---|
view |
HTMLElement |
handler |
IAction1<Size> |
Returns: IAction0
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:392
addOnVideoSizeChange
▸ Private
addOnVideoSizeChange(view
: HTMLElement, handler
: IAction1<Size>): IAction0
Parameters:
Name | Type |
---|---|
view |
HTMLElement |
handler |
IAction1<Size> |
Returns: IAction0
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:354
addOnWebRtcVideoSizeChange
▸ Private
addOnWebRtcVideoSizeChange(view
: HTMLElement, handler
: IAction1<Size>): IAction0
Parameters:
Name | Type |
---|---|
view |
HTMLElement |
handler |
IAction1<Size> |
Returns: IAction0
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:364
addRemoteMedia
▸ addRemoteMedia(remoteMedia
: IViewableMedia<HTMLElement>): boolean
Adds remote media to the layout.
Parameters:
Name | Type | Description |
---|---|---|
remoteMedia |
IViewableMedia<HTMLElement> | The remote media. |
Returns: boolean
true
if successful; otherwise, false
.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:106
addRemoteView
▸ addRemoteView(idValue
: string, view
: HTMLElement): boolean
Adds a remote view to the layout.
Parameters:
Name | Type | Description |
---|---|---|
idValue |
string | The remote view ID. |
view |
HTMLElement | The remote view. |
Returns: boolean
true
if successful; otherwise, false
. Check the logs for additional information.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:124
addRemoteViews
▸ addRemoteViews(ids
: string[], views
: HTMLElement[]): boolean
Adds remote views to the layout.
Parameters:
Name | Type | Description |
---|---|---|
ids |
string[] | The remote view IDs. |
views |
HTMLElement[] | The remote views. |
Returns: boolean
true
if successful; otherwise, false
. Check the logs for additional information.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:153
addView
▸ Protected
addView(view
: HTMLElement): void
Parameters:
Name | Type |
---|---|
view |
HTMLElement |
Returns: void
Overrides: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:100
applyPreset
▸ applyPreset(preset
: LayoutPreset): void
Applies a preset.
Parameters:
Name | Type | Description |
---|---|---|
preset |
LayoutPreset | The preset to apply. |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:452
calculateLayout
▸ calculateLayout(layoutWidth
: number, layoutHeight
: number, local
: boolean, remoteCount
: number, origin
: LayoutOrigin, localVideoSize
: Size, remoteVideoSizes
: Size[]): Layout
Gets a video frame layout.
Parameters:
Name | Type | Description |
---|---|---|
layoutWidth |
number | The total width of the layout. |
layoutHeight |
number | The total height of the layout. |
local |
boolean | Whether a local frame is needed. |
remoteCount |
number | The number of remote frames. |
origin |
LayoutOrigin | The layout origin. |
localVideoSize |
Size | The local video size. |
remoteVideoSizes |
Size[] | The remote video sizes. |
Returns: Layout
The video frame layout.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:828
▸ calculateLayout(layoutWidth
: number, layoutHeight
: number, remoteCount
: number, origin
: LayoutOrigin): Layout
Gets a video frame layout.
Parameters:
Name | Type | Description |
---|---|---|
layoutWidth |
number | The total width of the layout. |
layoutHeight |
number | The total height of the layout. |
remoteCount |
number | The number of remote frames. |
origin |
LayoutOrigin | The layout origin. |
Returns: Layout
The video frame layout.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:839
collectionToArray
▸ Private
collectionToArray(collection
: HTMLCollectionOf<Element>): HTMLElement[]
Parameters:
Name | Type |
---|---|
collection |
HTMLCollectionOf<Element> |
Returns: HTMLElement[]
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:178
copyToPreset
▸ copyToPreset(preset
: LayoutPreset): void
Copies this preset's properties to another preset.
Parameters:
Name | Type | Description |
---|---|---|
preset |
LayoutPreset | The target preset. |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:897
destroy
▸ destroy(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:95
destroyInnerContainer
▸ Private
destroyInnerContainer(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:87
dispatchToMainThread
▸ Protected
dispatchToMainThread(action
: IAction2<any, any>, arg1
: any, arg2
: any): void
Parameters:
Name | Type |
---|---|
action |
IAction2<any, any> |
arg1 |
any |
arg2 |
any |
Returns: void
Overrides: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:125
doGetLocalView
▸ Protected
doGetLocalView(): HTMLElement
Returns: HTMLElement
Overrides: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:129
doGetRemoteViews
▸ Protected
doGetRemoteViews(idValue
: string): HTMLElement[]
Parameters:
Name | Type |
---|---|
idValue |
string |
Returns: HTMLElement[]
Overrides: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:149
doGetRemoteViewsIds
▸ Protected
doGetRemoteViewsIds(): string[]
Returns: string[]
Overrides: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:139
getAlignment
▸ getAlignment(): LayoutAlignment
Gets the alignment of the layout. Defaults to [[fm.liveswitch.layoutAlignment.BottomRight]].
Returns: LayoutAlignment
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:980
getBlockHeight
▸ getBlockHeight(): number
Gets the height of block elements in pixels. Overrides [[fm.liveswitch.layoutPreset.blockHeightPercent]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:993
getBlockHeightPercent
▸ getBlockHeightPercent(): number
Gets the height of block elements as a percent of the container height between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.blockHeight]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1007
getBlockMarginX
▸ getBlockMarginX(): number
Gets the X-margin between block elements and the layout edge in pixels. Overrides [[fm.liveswitch.layoutPreset.blockMarginXPercent]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1105
getBlockMarginXPercent
▸ getBlockMarginXPercent(): number
Gets the X-margin between block elements and the layout edge as a percent of the container width between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.blockMarginX]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1119
getBlockMarginY
▸ getBlockMarginY(): number
Gets the Y-margin between block elements and the layout edge in pixels. Overrides [[fm.liveswitch.layoutPreset.blockMarginYPercent]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1133
getBlockMarginYPercent
▸ getBlockMarginYPercent(): number
Gets the Y-margin between block elements and the layout edge as a percent of the container height between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.blockMarginY]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1147
getBlockWidth
▸ getBlockWidth(): number
Gets the width of block elements in pixels. Overrides [[fm.liveswitch.layoutPreset.blockWidthPercent]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1160
getBlockWidthPercent
▸ getBlockWidthPercent(): number
Gets the width of block elements as a percent of the container width between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.blockWidth]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1174
getContainer
▸ getContainer(): HTMLElement
Returns: HTMLElement
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:32
getDirection
▸ getDirection(): LayoutDirection
Gets the direction of the layout flow. Defaults to [[fm.liveswitch.layoutDirection.Horizontal]].
Returns: LayoutDirection
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1256
getDynamicProperties
▸ getDynamicProperties(): Hash<string, Object>
Gets all dynamic properties on this instance.
Returns: Hash<string, Object>
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:37
getDynamicValue
▸ getDynamicValue(key
: string): Object
Gets a property value from the local cache.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions. |
Returns: Object
The stored value, if found; otherwise null.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:58
getFloatHeight
▸ getFloatHeight(): number
Gets the height of floating elements in pixels. Overrides [[fm.liveswitch.layoutPreset.floatHeightPercent]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1269
getFloatHeightPercent
▸ getFloatHeightPercent(): number
Gets the height of floating elements as a percent of the container height between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.floatHeight]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1283
getFloatMarginX
▸ getFloatMarginX(): number
Gets the X-margin between floating elements and the layout edge in pixels. Overrides [[fm.liveswitch.layoutPreset.floatMarginXPercent]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1317
getFloatMarginXPercent
▸ getFloatMarginXPercent(): number
Gets the X-margin between floating elements and the layout edge as a percent of the container width between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.floatMarginX]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1331
getFloatMarginY
▸ getFloatMarginY(): number
Gets the Y-margin between floating elements and the layout edge in pixels. Overrides [[fm.liveswitch.layoutPreset.floatMarginYPercent]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1345
getFloatMarginYPercent
▸ getFloatMarginYPercent(): number
Gets the Y-margin between floating elements and the layout edge as a percent of the container height between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.floatMarginY]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1359
getFloatWidth
▸ getFloatWidth(): number
Gets the width of floating elements in pixels. Overrides [[fm.liveswitch.layoutPreset.floatWidthPercent]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1389
getFloatWidthPercent
▸ getFloatWidthPercent(): number
Gets the width of floating elements as a percent of the container width between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.floatWidth]].
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1403
getHorizontalScrollbarHeight
▸ Private
getHorizontalScrollbarHeight(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:439
getInlineMargin
▸ getInlineMargin(): number
Gets the size of the margin in pixels to use between inline elements.
Returns: number
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1494
getLayout
▸ Protected
getLayout(layoutWidth
: number, layoutHeight
: number, local
: boolean, remoteCount
: number): Layout
Gets a video frame layout.
Parameters:
Name | Type | Description |
---|---|---|
layoutWidth |
number | The total width of the layout. |
layoutHeight |
number | The total height of the layout. |
local |
boolean | Whether a local frame is needed. |
remoteCount |
number | The number of remote frames. |
Returns: Layout
The video frame layout.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:332
▸ Protected
getLayout(layoutWidth
: number, layoutHeight
: number, local
: boolean, remoteCount
: number, remoteViewIds
: string[]): Layout
Gets a video frame layout.
Parameters:
Name | Type | Description |
---|---|---|
layoutWidth |
number | The total width of the layout. |
layoutHeight |
number | The total height of the layout. |
local |
boolean | Whether a local frame is needed. |
remoteCount |
number | The number of remote frames. |
remoteViewIds |
string[] | The remote view IDs. |
Returns: Layout
The video frame layout.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:344
▸ Protected
getLayout(layoutWidth
: number, layoutHeight
: number, local
: boolean, remoteCount
: number, remoteViewIds
: string[], localVideoSize
: Size, remoteVideoSizes
: Size[]): Layout
Gets a video frame layout.
Parameters:
Name | Type | Description |
---|---|---|
layoutWidth |
number | The total width of the layout. |
layoutHeight |
number | The total height of the layout. |
local |
boolean | Whether a local frame is needed. |
remoteCount |
number | The number of remote frames. |
remoteViewIds |
string[] | The remote view IDs. |
localVideoSize |
Size | The local video size. |
remoteVideoSizes |
Size[] | The remote video sizes. |
Returns: Layout
The video frame layout.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:358
▸ Protected
getLayout(layoutWidth
: number, layoutHeight
: number, remoteCount
: number): Layout
Gets a video frame layout.
Parameters:
Name | Type | Description |
---|---|---|
layoutWidth |
number | The total width of the layout. |
layoutHeight |
number | The total height of the layout. |
remoteCount |
number | The number of remote frames. |
Returns: Layout
The video frame layout.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:368
▸ Protected
getLayout(layoutWidth
: number, layoutHeight
: number, remoteCount
: number, remoteViewIds
: string[]): Layout
Gets a video frame layout.
Parameters:
Name | Type | Description |
---|---|---|
layoutWidth |
number | The total width of the layout. |
layoutHeight |
number | The total height of the layout. |
remoteCount |
number | The number of remote frames. |
remoteViewIds |
string[] | The remote view IDs. |
Returns: Layout
The video frame layout.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:379
getLayoutOrigin
▸ getLayoutOrigin(): LayoutOrigin
Gets the layout origin. Defaults to TopLeft.
Returns: LayoutOrigin
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:441
getLocalView
▸ getLocalView(): HTMLElement
Gets the local view from the layout.
Returns: HTMLElement
The local view.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:454
getMode
▸ getMode(): LayoutMode
Gets the mode used by the layout engine. Defaults to [[fm.liveswitch.layoutMode.FloatLocal]].
Returns: LayoutMode
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1633
getParentView
▸ Private
getParentView(view
: HTMLElement): HTMLElement
Parameters:
Name | Type |
---|---|
view |
HTMLElement |
Returns: HTMLElement
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:171
getParentViews
▸ Private
getParentViews(views
: HTMLElement[]): HTMLElement[]
Parameters:
Name | Type |
---|---|
views |
HTMLElement[] |
Returns: HTMLElement[]
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:164
getPluginVideoSize
▸ Private
getPluginVideoSize(view
: HTMLElement): Size
Parameters:
Name | Type |
---|---|
view |
HTMLElement |
Returns: Size
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:328
getRemoteView
▸ getRemoteView(idValue
: string): HTMLElement
Gets a remote view from the layout.
Parameters:
Name | Type | Description |
---|---|---|
idValue |
string | The remote view ID. |
Returns: HTMLElement
The remote view.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:492
getRemoteViewIds
▸ getRemoteViewIds(): string[]
Gets the IDs of the remote views in the layout.
Returns: string[]
The remote view IDs.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:508
getRemoteViews
▸ getRemoteViews(): HTMLElement[]
Gets all remote views from the layout.
Returns: HTMLElement[]
The remote views.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:521
▸ getRemoteViews(ids
: string[]): HTMLElement[]
Gets remote views from the layout.
Parameters:
Name | Type | Description |
---|---|---|
ids |
string[] | The remote view IDs. |
Returns: HTMLElement[]
The remote views.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:529
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:4
getVerticalScrollbarWidth
▸ Private
getVerticalScrollbarWidth(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:420
getVideoSize
▸ Private
getVideoSize(view
: HTMLElement): Size
Parameters:
Name | Type |
---|---|
view |
HTMLElement |
Returns: Size
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:292
getViewsByClassName
▸ Private
getViewsByClassName(className
: string): HTMLElement[]
Parameters:
Name | Type |
---|---|
className |
string |
Returns: HTMLElement[]
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:161
getWebRtcVideoSize
▸ Private
getWebRtcVideoSize(view
: HTMLElement): Size
Parameters:
Name | Type |
---|---|
view |
HTMLElement |
Returns: Size
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:302
initializeInnerContainer
▸ Private
initializeInnerContainer(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:55
layout
▸ layout(): void
Returns: void
Overrides: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:186
layoutOnMainThread
▸ layoutOnMainThread(): void
Positions the local and remote views within the layout after dispatching to the main thread.
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:570
removeOnLayout
▸ removeOnLayout(value
: IAction1<Layout>): void
Removes a handler that is raised when a layout is calculated.
Parameters:
Name | Type |
---|---|
value |
IAction1<Layout> |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:590
removeRemoteMedia
▸ removeRemoteMedia(remoteMedia
: IViewableMedia<HTMLElement>): boolean
Removes remote media from the layout.
Parameters:
Name | Type | Description |
---|---|---|
remoteMedia |
IViewableMedia<HTMLElement> | The remote media. |
Returns: boolean
true
if successful; otherwise, false
.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:605
removeRemoteView
▸ removeRemoteView(idValue
: string): boolean
Removes a remote view from the layout.
Parameters:
Name | Type | Description |
---|---|---|
idValue |
string | The remote view ID. |
Returns: boolean
true
if successful; otherwise, false
. Check the logs for additional information.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:622
removeRemoteViews
▸ removeRemoteViews(): void
Removes all remote views from the layout.
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:647
▸ removeRemoteViews(ids
: string[]): boolean
Removes remote views from the layout.
Parameters:
Name | Type | Description |
---|---|---|
ids |
string[] | The remote view IDs. |
Returns: boolean
true
if successful; otherwise, false
. Check the logs for additional information.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:655
removeView
▸ Protected
removeView(view
: HTMLElement): void
Parameters:
Name | Type |
---|---|
view |
HTMLElement |
Returns: void
Overrides: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/DomLayoutManager.ts:110
reset
▸ reset(): void
Removes all remote views from the layout, then removes the local view from the layout.
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:728
setAlignment
▸ setAlignment(value
: LayoutAlignment): void
Sets the alignment of the layout. Defaults to [[fm.liveswitch.layoutAlignment.BottomRight]].
Parameters:
Name | Type |
---|---|
value |
LayoutAlignment |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1692
setBlockHeight
▸ setBlockHeight(value
: number): void
Sets the height of block elements in pixels. Overrides [[fm.liveswitch.layoutPreset.blockHeightPercent]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1705
setBlockHeightPercent
▸ setBlockHeightPercent(value
: number): void
Sets the height of block elements as a percent of the container height between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.blockHeight]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1721
setBlockMarginX
▸ setBlockMarginX(value
: number): void
Sets the X-margin between block elements and the layout edge in pixels. Overrides [[fm.liveswitch.layoutPreset.blockMarginXPercent]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1742
setBlockMarginXPercent
▸ setBlockMarginXPercent(value
: number): void
Sets the X-margin between block elements and the layout edge as a percent of the container width between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.blockMarginX]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1758
setBlockMarginY
▸ setBlockMarginY(value
: number): void
Sets the Y-margin between block elements and the layout edge in pixels. Overrides [[fm.liveswitch.layoutPreset.blockMarginYPercent]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1779
setBlockMarginYPercent
▸ setBlockMarginYPercent(value
: number): void
Sets the Y-margin between block elements and the layout edge as a percent of the container height between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.blockMarginY]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1795
setBlockWidth
▸ setBlockWidth(value
: number): void
Sets the width of block elements in pixels. Overrides [[fm.liveswitch.layoutPreset.blockWidthPercent]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1815
setBlockWidthPercent
▸ setBlockWidthPercent(value
: number): void
Sets the width of block elements as a percent of the container width between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.blockWidth]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1831
setDirection
▸ setDirection(value
: LayoutDirection): void
Sets the direction of the layout flow. Defaults to [[fm.liveswitch.layoutDirection.Horizontal]].
Parameters:
Name | Type |
---|---|
value |
LayoutDirection |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1851
setDynamicValue
▸ setDynamicValue(key
: string, value
: Object): void
Sets a property value in the local cache.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions. |
value |
Object | The property value. This can be any object that needs to be stored for future use. |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:95
setFloatHeight
▸ setFloatHeight(value
: number): void
Sets the height of floating elements in pixels. Overrides [[fm.liveswitch.layoutPreset.floatHeightPercent]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1864
setFloatHeightPercent
▸ setFloatHeightPercent(value
: number): void
Sets the height of floating elements as a percent of the container height between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.floatHeight]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1880
setFloatMarginX
▸ setFloatMarginX(value
: number): void
Sets the X-margin between floating elements and the layout edge in pixels. Overrides [[fm.liveswitch.layoutPreset.floatMarginXPercent]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1901
setFloatMarginXPercent
▸ setFloatMarginXPercent(value
: number): void
Sets the X-margin between floating elements and the layout edge as a percent of the container width between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.floatMarginX]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1917
setFloatMarginY
▸ setFloatMarginY(value
: number): void
Sets the Y-margin between floating elements and the layout edge in pixels. Overrides [[fm.liveswitch.layoutPreset.floatMarginYPercent]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1938
setFloatMarginYPercent
▸ setFloatMarginYPercent(value
: number): void
Sets the Y-margin between floating elements and the layout edge as a percent of the container height between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.floatMarginY]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1954
setFloatWidth
▸ setFloatWidth(value
: number): void
Sets the width of floating elements in pixels. Overrides [[fm.liveswitch.layoutPreset.floatWidthPercent]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1974
setFloatWidthPercent
▸ setFloatWidthPercent(value
: number): void
Sets the width of floating elements as a percent of the container width between 0.0 and 1.0. Overrides [[fm.liveswitch.layoutPreset.floatWidth]].
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:1990
setInlineMargin
▸ setInlineMargin(value
: number): void
Sets the size of the margin in pixels to use between inline elements.
Parameters:
Name | Type |
---|---|
value |
number |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:2010
setLayoutOrigin
▸ Protected
setLayoutOrigin(value
: LayoutOrigin): void
Sets the layout origin. Defaults to TopLeft.
Parameters:
Name | Type |
---|---|
value |
LayoutOrigin |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:742
setLocalMedia
▸ setLocalMedia(localMedia
: IViewableMedia<HTMLElement>): boolean
Adds the local media to the layout.
Parameters:
Name | Type | Description |
---|---|---|
localMedia |
IViewableMedia<HTMLElement> | The local media. |
Returns: boolean
true
if successful; otherwise, false
.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:756
setLocalView
▸ setLocalView(view
: HTMLElement): boolean
Adds the local view to the layout.
Parameters:
Name | Type | Description |
---|---|---|
view |
HTMLElement | The local view. |
Returns: boolean
true
if successful; otherwise, false
. Check the logs for additional information.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:773
setMode
▸ setMode(value
: LayoutMode): void
Sets the mode used by the layout engine. Defaults to [[fm.liveswitch.layoutMode.FloatLocal]].
Parameters:
Name | Type |
---|---|
value |
LayoutMode |
Returns: void
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:2024
swapRemoteMedia
▸ swapRemoteMedia(remoteMediaToRemove
: IViewableMedia<HTMLElement>, remoteMediaToAdd
: IViewableMedia<HTMLElement>): boolean
Swaps remote media in the layout.
Parameters:
Name | Type | Description |
---|---|---|
remoteMediaToRemove |
IViewableMedia<HTMLElement> | The remote media to remove. |
remoteMediaToAdd |
IViewableMedia<HTMLElement> | The remote media to add. |
Returns: boolean
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:814
swapRemoteView
▸ swapRemoteView(idToRemove
: string, idToAdd
: string, viewToAdd
: HTMLElement): boolean
Swaps a remote view in the layout.
Parameters:
Name | Type | Description |
---|---|---|
idToRemove |
string | The remote view ID to remove. |
idToAdd |
string | The remote view ID to add. |
viewToAdd |
HTMLElement | The remote view to add. |
Returns: boolean
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:835
swapRemoteViews
▸ swapRemoteViews(idsToRemove
: string[], idsToAdd
: string[], viewsToAdd
: HTMLElement[]): boolean
Swaps remote views in the layout.
Parameters:
Name | Type | Description |
---|---|---|
idsToRemove |
string[] | The remote view IDs to remove. |
idsToAdd |
string[] | The remote view IDs to add. |
viewsToAdd |
HTMLElement[] | The remote views to add. |
Returns: boolean
true
if successful; otherwise, false
. Check the logs for additional information.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:864
unsetDynamicValue
▸ unsetDynamicValue(key
: string): boolean
Removes a property value from the local cache. Returns true if the value was removed and returns false otherwise.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The property key. This key is used internally only, but should be namespaced to avoid conflict with third-party extensions. |
Returns: boolean
true
if the value was removed; otherwise, false
.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/Dynamic.ts:122
unsetLocalView
▸ unsetLocalView(): boolean
Removes the local view from the layout.
Returns: boolean
true
if successful; otherwise, false
. Check the logs for additional information.
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutManager.ts:894
getFacetime
▸ Static
getFacetime(): LayoutPreset
Gets a Facetime-style layout preset.
Returns: LayoutPreset
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:169
getGoogleHangouts
▸ Static
getGoogleHangouts(): LayoutPreset
Gets a Google Hangouts-style layout preset. Note that this will present differently on mobile devices.
Returns: LayoutPreset
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:191
getSkype
▸ Static
getSkype(): LayoutPreset
Gets a Skype-style layout preset. Note that this will present differently on mobile devices.
Returns: LayoutPreset
Inherited from: LayoutManager
Defined in: Generated/TypeScript/fm.liveswitch/LayoutPreset.ts:234