CBLCameraDiscoveryDelegate
Objective-C
@protocol CBLCameraDiscoveryDelegate <NSObject>
Swift
protocol CameraDiscoveryDelegate : NSObjectProtocol
Camera discovery delegate methods.
-
Called when a new camera is discovered.
Declaration
Objective-C
- (void)discovery:(nonnull CBLCameraDiscovery *)discovery didDiscoverCamera:(nonnull id<CBLCamera>)camera;
Swift
func discovery(_ discovery: CameraDiscovery, didDiscover camera: any CBLCamera)
Parameters
discovery
The
CBLCameraDiscovery
instance that found the camera.camera
The newly found camera.
-
Called when a camera can no longer be seen.
Declaration
Objective-C
- (void)discovery:(nonnull CBLCameraDiscovery *)discovery didLoseSightOfCamera:(nonnull id<CBLCamera>)camera;
Swift
func discovery(_ discovery: CameraDiscovery, didLoseSightOf camera: any CBLCamera)
Parameters
discovery
The
CBLCameraDiscovery
instance that lost light of the camera.camera
The camera that can no longer be seen. If you’re already connected to this camera, it’s normal for the camera to disappear from discovery.