A layout preset. More...
Instance Methods | |
(FMLiveSwitchLayoutAlignment) | - alignment |
Gets the alignment of the layout. More... | |
(void) | - applyPreset: |
Applies a preset. More... | |
(int) | - blockHeight |
Gets the height of block elements in pixels. More... | |
(double) | - blockHeightPercent |
Gets the height of block elements as a percent of the container height between 0.0 and 1.0. More... | |
(int) | - blockMarginX |
Gets the X-margin between block elements and the layout edge in pixels. More... | |
(double) | - blockMarginXPercent |
Gets the X-margin between block elements and the layout edge as a percent of the container width between 0.0 and 1.0. More... | |
(int) | - blockMarginY |
Gets the Y-margin between block elements and the layout edge in pixels. More... | |
(double) | - blockMarginYPercent |
Gets the Y-margin between block elements and the layout edge as a percent of the container height between 0.0 and 1.0. More... | |
(int) | - blockWidth |
Gets the width of block elements in pixels. More... | |
(double) | - blockWidthPercent |
Gets the width of block elements as a percent of the container width between 0.0 and 1.0. More... | |
(FMLiveSwitchLayout *) | - calculateLayoutWithLayoutWidth:layoutHeight:local:remoteCount:origin:localVideoSize:remoteVideoSizes: |
Gets a video frame layout. More... | |
(FMLiveSwitchLayout *) | - calculateLayoutWithLayoutWidth:layoutHeight:remoteCount:origin: |
Gets a video frame layout. More... | |
(void) | - copyToPreset: |
Copies this preset's properties to another preset. More... | |
(FMLiveSwitchLayoutDirection) | - direction |
Gets the direction of the layout flow. More... | |
(int) | - floatHeight |
Gets the height of floating elements in pixels. More... | |
(double) | - floatHeightPercent |
Gets the height of floating elements as a percent of the container height between 0.0 and 1.0. More... | |
(int) | - floatMarginX |
Gets the X-margin between floating elements and the layout edge in pixels. More... | |
(double) | - floatMarginXPercent |
Gets the X-margin between floating elements and the layout edge as a percent of the container width between 0.0 and 1.0. More... | |
(int) | - floatMarginY |
Gets the Y-margin between floating elements and the layout edge in pixels. More... | |
(double) | - floatMarginYPercent |
Gets the Y-margin between floating elements and the layout edge as a percent of the container height between 0.0 and 1.0. More... | |
(int) | - floatWidth |
Gets the width of floating elements in pixels. More... | |
(double) | - floatWidthPercent |
Gets the width of floating elements as a percent of the container width between 0.0 and 1.0. More... | |
(instancetype) | - init |
Initializes a new instance of the FMLiveSwitchLayoutPreset class. More... | |
(int) | - inlineMargin |
Gets the size of the margin in pixels to use between inline elements. More... | |
(FMLiveSwitchLayoutMode) | - mode |
Gets the mode used by the layout engine. More... | |
(void) | - setAlignment: |
Sets the alignment of the layout. More... | |
(void) | - setBlockHeight: |
Sets the height of block elements in pixels. More... | |
(void) | - setBlockHeightPercent: |
Sets the height of block elements as a percent of the container height between 0.0 and 1.0. More... | |
(void) | - setBlockMarginX: |
Sets the X-margin between block elements and the layout edge in pixels. More... | |
(void) | - setBlockMarginXPercent: |
Sets the X-margin between block elements and the layout edge as a percent of the container width between 0.0 and 1.0. More... | |
(void) | - setBlockMarginY: |
Sets the Y-margin between block elements and the layout edge in pixels. More... | |
(void) | - setBlockMarginYPercent: |
Sets the Y-margin between block elements and the layout edge as a percent of the container height between 0.0 and 1.0. More... | |
(void) | - setBlockWidth: |
Sets the width of block elements in pixels. More... | |
(void) | - setBlockWidthPercent: |
Sets the width of block elements as a percent of the container width between 0.0 and 1.0. More... | |
(void) | - setDirection: |
Sets the direction of the layout flow. More... | |
(void) | - setFloatHeight: |
Sets the height of floating elements in pixels. More... | |
(void) | - setFloatHeightPercent: |
Sets the height of floating elements as a percent of the container height between 0.0 and 1.0. More... | |
(void) | - setFloatMarginX: |
Sets the X-margin between floating elements and the layout edge in pixels. More... | |
(void) | - setFloatMarginXPercent: |
Sets the X-margin between floating elements and the layout edge as a percent of the container width between 0.0 and 1.0. More... | |
(void) | - setFloatMarginY: |
Sets the Y-margin between floating elements and the layout edge in pixels. More... | |
(void) | - setFloatMarginYPercent: |
Sets the Y-margin between floating elements and the layout edge as a percent of the container height between 0.0 and 1.0. More... | |
(void) | - setFloatWidth: |
Sets the width of floating elements in pixels. More... | |
(void) | - setFloatWidthPercent: |
Sets the width of floating elements as a percent of the container width between 0.0 and 1.0. More... | |
(void) | - setInlineMargin: |
Sets the size of the margin in pixels to use between inline elements. More... | |
(void) | - setMode: |
Sets the mode used by the layout engine. More... | |
Instance Methods inherited from FMLiveSwitchDynamic | |
(NSMutableDictionary< NSString *, id > *) | - dynamicProperties |
Gets all dynamic properties on this instance. More... | |
(id) | - getDynamicValueWithKey: |
Gets a property value from the local cache. More... | |
(void) | - setDynamicValueWithKey:value: |
Sets a property value in the local cache. More... | |
(bool) | - unsetDynamicValueWithKey: |
Removes a property value from the local cache. More... | |
Class Methods | |
(FMLiveSwitchLayoutPreset *) | + facetime |
Gets a Facetime-style layout preset. More... | |
(FMLiveSwitchLayoutPreset *) | + googleHangouts |
Gets a Google Hangouts-style layout preset. More... | |
(FMLiveSwitchLayoutPreset *) | + layoutPreset |
Initializes a new instance of the FMLiveSwitchLayoutPreset class. More... | |
(FMLiveSwitchLayoutPreset *) | + skype |
Gets a Skype-style layout preset. More... | |
Class Methods inherited from FMLiveSwitchDynamic | |
(FMLiveSwitchDynamic *) | + dynamic |
Class Methods inherited from FMLiveSwitchSerializable | |
(FMLiveSwitchSerializable *) | + serializable |
Initializes a new instance of the FMLiveSwitchSerializable class. More... | |
A layout preset.
- (FMLiveSwitchLayoutAlignment) alignment |
Gets the alignment of the layout.
Defaults to FMLiveSwitchLayoutAlignmentBottomRight.
- (void) applyPreset: | (FMLiveSwitchLayoutPreset *) | preset |
Applies a preset.
preset | The preset to apply. |
- (int) blockHeight |
Gets the height of block elements in pixels.
Overrides blockHeightPercent.
- (double) blockHeightPercent |
Gets the height of block elements as a percent of the container height between 0.0 and 1.0.
Overrides blockHeight.
- (int) blockMarginX |
Gets the X-margin between block elements and the layout edge in pixels.
Overrides blockMarginXPercent.
- (double) blockMarginXPercent |
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 blockMarginX.
- (int) blockMarginY |
Gets the Y-margin between block elements and the layout edge in pixels.
Overrides blockMarginYPercent.
- (double) blockMarginYPercent |
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 blockMarginY.
- (int) blockWidth |
Gets the width of block elements in pixels.
Overrides blockWidthPercent.
- (double) blockWidthPercent |
Gets the width of block elements as a percent of the container width between 0.0 and 1.0.
Overrides blockWidth.
- (FMLiveSwitchLayout*) calculateLayoutWithLayoutWidth: | (int) | layoutWidth | |
layoutHeight: | (int) | layoutHeight | |
local: | (bool) | local | |
remoteCount: | (int) | remoteCount | |
origin: | (FMLiveSwitchLayoutOrigin) | origin | |
localVideoSize: | (FMLiveSwitchSize *) | localVideoSize | |
remoteVideoSizes: | (NSMutableArray *) | remoteVideoSizes | |
Gets a video frame layout.
layoutWidth | The total width of the layout. |
layoutHeight | The total height of the layout. |
local | Whether a local frame is needed. |
remoteCount | The number of remote frames. |
origin | The layout origin. |
localVideoSize | The local video size. |
remoteVideoSizes | The remote video sizes. |
- (FMLiveSwitchLayout*) calculateLayoutWithLayoutWidth: | (int) | layoutWidth | |
layoutHeight: | (int) | layoutHeight | |
remoteCount: | (int) | remoteCount | |
origin: | (FMLiveSwitchLayoutOrigin) | origin | |
Gets a video frame layout.
layoutWidth | The total width of the layout. |
layoutHeight | The total height of the layout. |
remoteCount | The number of remote frames. |
origin | The layout origin. |
- (void) copyToPreset: | (FMLiveSwitchLayoutPreset *) | preset |
Copies this preset's properties to another preset.
preset | The target preset. |
- (FMLiveSwitchLayoutDirection) direction |
Gets the direction of the layout flow.
Defaults to FMLiveSwitchLayoutDirectionHorizontal.
+ (FMLiveSwitchLayoutPreset*) facetime |
Gets a Facetime-style layout preset.
- (int) floatHeight |
Gets the height of floating elements in pixels.
Overrides floatHeightPercent.
- (double) floatHeightPercent |
Gets the height of floating elements as a percent of the container height between 0.0 and 1.0.
Overrides floatHeight.
- (int) floatMarginX |
Gets the X-margin between floating elements and the layout edge in pixels.
Overrides floatMarginXPercent.
- (double) floatMarginXPercent |
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 floatMarginX.
- (int) floatMarginY |
Gets the Y-margin between floating elements and the layout edge in pixels.
Overrides floatMarginYPercent.
- (double) floatMarginYPercent |
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 floatMarginY.
- (int) floatWidth |
Gets the width of floating elements in pixels.
Overrides floatWidthPercent.
- (double) floatWidthPercent |
Gets the width of floating elements as a percent of the container width between 0.0 and 1.0.
Overrides floatWidth.
+ (FMLiveSwitchLayoutPreset*) googleHangouts |
Gets a Google Hangouts-style layout preset.
Note that this will present differently on mobile devices.
- (instancetype) init |
Initializes a new instance of the FMLiveSwitchLayoutPreset class.
Implements FMLiveSwitchDynamic.
- (int) inlineMargin |
Gets the size of the margin in pixels to use between inline elements.
+ (FMLiveSwitchLayoutPreset*) layoutPreset |
Initializes a new instance of the FMLiveSwitchLayoutPreset class.
- (FMLiveSwitchLayoutMode) mode |
Gets the mode used by the layout engine.
Defaults to FMLiveSwitchLayoutModeFloatLocal.
- (void) setAlignment: | (FMLiveSwitchLayoutAlignment) | value |
Sets the alignment of the layout.
Defaults to FMLiveSwitchLayoutAlignmentBottomRight.
- (void) setBlockHeight: | (int) | value |
Sets the height of block elements in pixels.
Overrides blockHeightPercent.
- (void) setBlockHeightPercent: | (double) | value |
Sets the height of block elements as a percent of the container height between 0.0 and 1.0.
Overrides blockHeight.
- (void) setBlockMarginX: | (int) | value |
Sets the X-margin between block elements and the layout edge in pixels.
Overrides blockMarginXPercent.
- (void) setBlockMarginXPercent: | (double) | value |
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 blockMarginX.
- (void) setBlockMarginY: | (int) | value |
Sets the Y-margin between block elements and the layout edge in pixels.
Overrides blockMarginYPercent.
- (void) setBlockMarginYPercent: | (double) | value |
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 blockMarginY.
- (void) setBlockWidth: | (int) | value |
Sets the width of block elements in pixels.
Overrides blockWidthPercent.
- (void) setBlockWidthPercent: | (double) | value |
Sets the width of block elements as a percent of the container width between 0.0 and 1.0.
Overrides blockWidth.
- (void) setDirection: | (FMLiveSwitchLayoutDirection) | value |
Sets the direction of the layout flow.
Defaults to FMLiveSwitchLayoutDirectionHorizontal.
- (void) setFloatHeight: | (int) | value |
Sets the height of floating elements in pixels.
Overrides floatHeightPercent.
- (void) setFloatHeightPercent: | (double) | value |
Sets the height of floating elements as a percent of the container height between 0.0 and 1.0.
Overrides floatHeight.
- (void) setFloatMarginX: | (int) | value |
Sets the X-margin between floating elements and the layout edge in pixels.
Overrides floatMarginXPercent.
- (void) setFloatMarginXPercent: | (double) | value |
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 floatMarginX.
- (void) setFloatMarginY: | (int) | value |
Sets the Y-margin between floating elements and the layout edge in pixels.
Overrides floatMarginYPercent.
- (void) setFloatMarginYPercent: | (double) | value |
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 floatMarginY.
- (void) setFloatWidth: | (int) | value |
Sets the width of floating elements in pixels.
Overrides floatWidthPercent.
- (void) setFloatWidthPercent: | (double) | value |
Sets the width of floating elements as a percent of the container width between 0.0 and 1.0.
Overrides floatWidth.
- (void) setInlineMargin: | (int) | value |
Sets the size of the margin in pixels to use between inline elements.
- (void) setMode: | (FMLiveSwitchLayoutMode) | value |
Sets the mode used by the layout engine.
Defaults to FMLiveSwitchLayoutModeFloatLocal.
+ (FMLiveSwitchLayoutPreset*) skype |
Gets a Skype-style layout preset.
Note that this will present differently on mobile devices.