FMLiveSwitchCocoaLayoutManager Class Reference

Instance Methods

(FM_VIEW *) - container
 
(instancetype) - initWithContainer:
 
(instancetype) - initWithContainer:preset:
 
- Instance Methods inherited from FMLiveSwitchLayoutManager
(FMLiveSwitchLayout *) - addOnLayoutWithBlock
 Adds a handler that is raised when a layout is calculated. More...
 
(void) - addOnLayoutWithBlock:
 Adds a handler that is raised when a layout is calculated. More...
 
(bool) - addRemoteMedia:
 Adds remote media to the layout. More...
 
(bool) - addRemoteViewsWithIds:views:
 Adds remote views to the layout. More...
 
(bool) - addRemoteViewWithId:view:
 Adds a remote view to the layout. More...
 
(void) - addView:
 Adds a view to the container. More...
 
(void) - dispatchToMainThreadWithAction:arg1:arg2:
 Dispatches an action to the main thread. More...
 
(void) - dispatchToMainThreadWithActionBlock:arg1:arg2:
 Dispatches an action to the main thread. More...
 
(id, id- dispatchToMainThreadWithActionBlockAndArg1AndArg2
 Dispatches an action to the main thread. More...
 
(T) - doGetLocalView
 Gets the local view. More...
 
(NSMutableArray *) - doGetRemoteViewsIds
 Gets the remote view IDs. More...
 
(NSMutableArray< T > *) - doGetRemoteViewsWithId:
 Gets the remote views for a given remote view ID. More...
 
(FMLiveSwitchLayout *) - getLayoutWithLayoutWidth:layoutHeight:local:remoteCount:
 Gets a video frame layout. More...
 
(FMLiveSwitchLayout *) - getLayoutWithLayoutWidth:layoutHeight:local:remoteCount:remoteViewIds:
 Gets a video frame layout. More...
 
(FMLiveSwitchLayout *) - getLayoutWithLayoutWidth:layoutHeight:local:remoteCount:remoteViewIds:localVideoSize:remoteVideoSizes:
 Gets a video frame layout. More...
 
(FMLiveSwitchLayout *) - getLayoutWithLayoutWidth:layoutHeight:remoteCount:
 Gets a video frame layout. More...
 
(FMLiveSwitchLayout *) - getLayoutWithLayoutWidth:layoutHeight:remoteCount:remoteViewIds:
 Gets a video frame layout. More...
 
(T) - getLocalView
 Gets the local view from the layout. More...
 
(NSMutableArray *) - getRemoteViewIds
 Gets the IDs of the remote views in the layout. More...
 
(NSMutableArray< T > *) - getRemoteViews
 Gets all remote views from the layout. More...
 
(NSMutableArray< T > *) - getRemoteViewsWithIds:
 Gets remote views from the layout. More...
 
(T) - getRemoteViewWithId:
 Gets a remote view from the layout. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchLayoutManager`1 class. More...
 
(instancetype) - initWithPreset:
 Initializes a new instance of the FMLiveSwitchLayoutManager`1 class. More...
 
(void) - layout
 Positions the local and remote views within the layout. More...
 
(void) - layoutOnMainThread
 Positions the local and remote views within the layout after dispatching to the main thread. More...
 
(FMLiveSwitchLayoutOrigin) - layoutOrigin
 Gets the layout origin. More...
 
(void) - removeOnLayout:
 Removes a handler that is raised when a layout is calculated. More...
 
(bool) - removeRemoteMedia:
 Removes remote media from the layout. More...
 
(void) - removeRemoteViews
 Removes all remote views from the layout. More...
 
(bool) - removeRemoteViewsWithIds:
 Removes remote views from the layout. More...
 
(bool) - removeRemoteViewWithId:
 Removes a remote view from the layout. More...
 
(void) - removeView:
 Removes a view from the container. More...
 
(void) - reset
 Removes all remote views from the layout, then removes the local view from the layout. More...
 
(void) - setLayoutOrigin:
 Sets the layout origin. More...
 
(bool) - setLocalMedia:
 Adds the local media to the layout. More...
 
(bool) - setLocalView:
 Adds the local view to the layout. More...
 
(bool) - swapRemoteMediaWithRemoteMediaToRemove:remoteMediaToAdd:
 Swaps remote media in the layout. More...
 
(bool) - swapRemoteViewsWithIdsToRemove:idsToAdd:viewsToAdd:
 Swaps remote views in the layout. More...
 
(bool) - swapRemoteViewWithIdToRemove:idToAdd:viewToAdd:
 Swaps a remote view in the layout. More...
 
(bool) - unsetLocalView
 Removes the local view from the layout. More...
 

Class Methods

(instancetype) + layoutManagerWithContainer:
 
(instancetype) + layoutManagerWithContainer:preset:
 
- Class Methods inherited from FMLiveSwitchLayoutManager
(FMLiveSwitchLayoutManager *) + layoutManager
 Initializes a new instance of the FMLiveSwitchLayoutManager`1 class. More...
 
(FMLiveSwitchLayoutManager *) + layoutManagerWithPreset:
 Initializes a new instance of the FMLiveSwitchLayoutManager`1 class. More...
 

Protected Attributes

< FMLiveSwitchCocoaLayoutContainerDelegate > FMLiveSwitchCocoaLayoutContainer_innerContainer
 
- Protected Attributes inherited from FMLiveSwitchLayoutManager
 __pad0__: FMLiveSwitchLayoutPreset- (void) addOnLayout:(FMLiveSwitchAction1<FMLiveSwitchLayout*>*)value
 

Method Documentation

◆ container

- (FM_VIEW *) container

◆ initWithContainer:

- (instancetype) initWithContainer: (FM_VIEW *)  container

◆ initWithContainer:preset:

- (instancetype) initWithContainer: (FM_VIEW *)  container
preset: (FMLiveSwitchLayoutPreset *)  preset 

◆ layoutManagerWithContainer:

+ (instancetype) layoutManagerWithContainer: (FM_VIEW *)  container

◆ layoutManagerWithContainer:preset:

+ (instancetype) layoutManagerWithContainer: (FM_VIEW *)  container
preset: (FMLiveSwitchLayoutPreset *)  preset 

Member Data Documentation

◆ _innerContainer

Initial value:
{
FM_VIEW *_container