IVSMixedImageDevice
Objective-C
@protocol IVSMixedImageDevice <IVSImageDevice, IVSMixedDevice>
                Swift
protocol IVSMixedImageDevice : IVSImageDevice, IVSMixedDevice
                A mixed image device that can accept multiple image sources to be mixed together to produce a final output. A mixed image device with no input sources will still produce output, but the output will be a black image.
Note
Previews for this device will be delayed slightly from the input sources due to the time it takes to composite and render the various sources into a single output stream.@warn This device will stop mixing when the application is in the background as a result of limited access to metal shaders while backgrounded.
This can be created through IVSDeviceDiscovery.
- 
                  
                  
Adds a source to this mixed device. If this
sourcehas already been added, this will be a no-op.Declaration
Objective-C
- (void)addSource:(nonnull IVSMixedImageDeviceSource *)source;Swift
func add(_ source: IVSMixedImageDeviceSource) - 
                  
                  
Removes a source from the mixed device. If this
sourceisn’t currently attached, this will be a no-op.Declaration
Objective-C
- (void)removeSource:(nonnull IVSMixedImageDeviceSource *)source;Swift
func remove(_ source: IVSMixedImageDeviceSource) - 
                  
                  
Returns an array of the sources attached to this device.
Declaration
Objective-C
- (nonnull NSArray<IVSMixedImageDeviceSource *> *)sources;Swift
func sources() -> [IVSMixedImageDeviceSource]