CBLCoreCameraDiscoveryProviderDelegate
Objective-C
@protocol CBLCoreCameraDiscoveryProviderDelegate <NSObject>
Swift
protocol CameraDiscoveryProviderDelegate : NSObjectProtocol
Methods to deliver camera discovery changes to CascableCore.
-
Inform CascableCore that a new camera has been discovered.
This method must be called on the main queue/thread.
Declaration
Objective-C
- (void)cameraDiscoveryProvider: (id<CBLCoreCameraDiscoveryProvider> _Nonnull)provider didDiscover:(id<CBLCamera> _Nonnull)camera;
Swift
func cameraDiscoveryProvider(_ provider: any CameraDiscoveryProvider, didDiscover camera: any CBLCamera)
Parameters
provider
The provider that has discovered the new camera.
camera
The camera that has been discovered.
-
Inform CascableCore that a previously-visible camera is no longer available.
This method must be called on the main queue/thread.
Declaration
Objective-C
- (void)cameraDiscoveryProvider: (id<CBLCoreCameraDiscoveryProvider> _Nonnull)provider didLoseSightOf:(id<CBLCamera> _Nonnull)camera;
Swift
func cameraDiscoveryProvider(_ provider: any CameraDiscoveryProvider, didLoseSightOf camera: any CBLCamera)
Parameters
provider
The provider that has lost sight of the camera.
camera
The camera that is no longer available.