CBLCameraLiveViewAFArea

Objective-C

@protocol CBLCameraLiveViewAFArea <NSObject>

Swift

protocol LiveViewAFArea : NSObjectProtocol

Represents an autofocus area in a camera’s focus aspect. Typically rendered as a rectangle on top of the live view image.

  • Returns YES if the AF area is focused, otherwise NO.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL focused;

    Swift

    var focused: Bool { get }
  • Returns YES if the AF area is active, otherwise NO.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL active;

    Swift

    var active: Bool { get }
  • Returns the area of the receiver, relative to the parent live view frame’s aspect.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGRect rect;

    Swift

    var rect: CGRect { get }