CBLCameraManualDiscovery

Objective-C

@protocol CBLCameraManualDiscovery <NSObject>

Swift

protocol CameraManualDiscovery : NSObjectProtocol

Use the CBLCameraManualDiscovery object when you need to connect to a camera in situations where using automatic discovery protocols is neither available or desired. Typically, this is paired with user interface asking the user for the IP address and manufacturer of their camera.

Note that manual discovery is entirely separate from the automatic discovery provided by CBLCameraDiscovery.

  • Returns the camera families the receiver is able to connect to.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSArray<NSNumber *> *supportedCameraFamilies;

    Swift

    var supportedCameraFamilies: [NSNumber] { get }
  • Attempt to discover a camera at the given descriptor.

    Declaration

    Objective-C

    - (void)attemptToDiscoverCamera:(CBLCameraDescriptor *_Nonnull)descriptor
                    completionQueue:(dispatch_queue_t _Nonnull)completionQueue
                  completionHandler:(CBLCameraCreationOperationCallback _Nonnull)
                                        completionHandler;

    Swift

    func attemptToDiscoverCamera(at descriptor: CameraDescriptor, completionQueue: dispatch_queue_t) async throws -> any CBLCamera

    Parameters

    descriptor

    The descriptor to attempt to resolve.

    completionQueue

    The queue on which to call the completion handler.

    completionHandler

    The completion handler to be called when discovery succeeds or fails.

  • Attempt to discover a camera at the given descriptor.

    Declaration

    Objective-C

    - (void)attemptToDiscoverCamera:(CBLCameraDescriptor *_Nonnull)descriptor
                  completionHandler:(CBLCameraCreationOperationCallback _Nonnull)
                                        completionHandler;

    Swift

    func attemptToDiscoverCamera(at descriptor: CameraDescriptor) async throws -> any CBLCamera

    Parameters

    descriptor

    The descriptor to attempt to resolve.

    completionHandler

    The completion handler to be called on the main queue when discovery succeeds or fails.