GSKScanProtocol

@protocol GSKScanProtocol <NSObject>

A protocol representing a scan, the result of the camera output. It encapsulates a simple file path. Since it’s a protocol, you can implement this object to store more details.

  • The orientation of the scan when the photo is taken.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        UIImageOrientation orientation;

    Swift

    var orientation: UIImage.Orientation { get set }
  • Returns a filepath including the filename to store the unrotated original JPEG out of the camera

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull filePath;

    Swift

    var filePath: String { get }