CodeDetectionObject

Objective-C

@interface CodeDetectionObject : NSObject

@property (readonly) AVMetadataObjectType type;
@property (readonly) CMTime time;
@property (readonly) CMTime duration;
@property (readonly) NSArray<NSDictionary *>* corners;
@property (readonly) CGPoint center;
@property (readonly) CGSize frameSize;
@property (readonly) CGSize codeCells;

@property (readonly) NSString* content;

- (instancetype) initWithAVMetadataMachineReadableCodeObject:(AVMetadataMachineReadableCodeObject *)metadataObject frameSize:(CGSize) frameSize;
- (instancetype) initWithAVMetadataMachineReadableCodeObject:(AVMetadataMachineReadableCodeObject *)metadataObject codeCells:(CGSize) codeCells frameSize:(CGSize) frameSize;

- (BOOL)hasValidCodeCellsInfo;

@end

Swift

class CodeDetectionObject : NSObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (readonly) AVMetadataObjectType type

    Swift

    var type: AVMetadataObject.ObjectType { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) CMTime time

    Swift

    var time: CMTime { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) CMTime duration

    Swift

    var duration: CMTime { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) NSArray<NSDictionary *>* corners

    Swift

    var corners: [[AnyHashable : Any]] { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) CGPoint center

    Swift

    var center: CGPoint { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) CGSize frameSize

    Swift

    var frameSize: CGSize { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) CGSize codeCells

    Swift

    var codeCells: CGSize { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) NSString* content

    Swift

    var content: String { get }
  • Undocumented

    Declaration

    Objective-C

    - (instancetype) initWithAVMetadataMachineReadableCodeObject:(AVMetadataMachineReadableCodeObject *)metadataObject frameSize:(CGSize) frameSize;

    Swift

    init(avMetadataMachineReadableCodeObject metadataObject: AVMetadataMachineReadableCodeObject, frameSize: CGSize)
  • Undocumented

    Declaration

    Objective-C

    - (instancetype) initWithAVMetadataMachineReadableCodeObject:(AVMetadataMachineReadableCodeObject *)metadataObject codeCells:(CGSize) codeCells frameSize:(CGSize) frameSize;

    Swift

    init(avMetadataMachineReadableCodeObject metadataObject: AVMetadataMachineReadableCodeObject, codeCells: CGSize, frameSize: CGSize)
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)hasValidCodeCellsInfo;

    Swift

    func hasValidCodeCellsInfo() -> Bool