CBLFocusPoint

Objective-C

@protocol CBLFocusPoint <NSObject>

Swift

protocol FocusPoint : NSObjectProtocol

Represents an individual focus point.

  • Returns whether the point is active or not — that is, whether the camera will use the point for autofocus.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL active;

    Swift

    var active: Bool { get }
  • Returns whether the point currently has focus.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL hasFocus;

    Swift

    var hasFocus: Bool { get }
  • Returns the rect defining this point within the parent’s aspect.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGRect pointRect;

    Swift

    var pointRect: CGRect { get }