RRCapturePhoto

Objective-C

@interface RRCapturePhoto : NSObject

Swift

class RRCapturePhoto : NSObject

RRCapturePhoto represents metadata information about captured image

  • Defines information about physical device position at the shooting moment

    Declaration

    Objective-C

    @property (nonatomic) PhotoShootingVector shootingVector;

    Swift

    var shootingVector: Int32 { get set }
  • Defines information about correctness of human body position when capturing

    Declaration

    Objective-C

    @property (nonatomic) PhotoQualityInfo info;

    Swift

    var info: Int32 { get set }
  • Binary representation for the captured photo

    Declaration

    Objective-C

    @property (nonatomic, strong) NSData *_Nonnull data;

    Swift

    var data: Data { get set }
  • Defines captured photo name. Automatically assigned value based on number in shooting order

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable name;

    Swift

    var name: String? { get set }
  • Initializes the RRCapturePhoto from an NSData object

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithData:(NSData *_Nonnull)photoData;

    Swift

    init(data photoData: Data)

    Parameters

    photoData

    binary representation of an image (JPEG, PNG)

    Return Value

    an instance of RRCapturePhoto

  • Initializes the RRCapturePhoto instance from an NSData and name NSString

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithData:(NSData *_Nonnull)photoData
                                     name:(NSString *_Nonnull)name;

    Swift

    init(data photoData: Data, name: String)

    Parameters

    photoData

    binary representation of an image (JPEG, PNG)

    name

    binary representation of an image (JPEG, PNG)

    Return Value

    an instance of RRCapturePhoto