NetverifyDocument


@interface NetverifyDocument : NSObject

NSObject that holds the specific information about a document.

  • The ISO 3166-1 Alpha 3 code

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSString *countryCode;

    Swift

    var countryCode: String! { get }
  • The type of the document

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readonly)
        NetverifyDocumentType type;

    Swift

    var type: NetverifyDocumentType { get }
  • A NetverifyDocument can have two variants. Set the selectedVariant to the one you’d like to use for scanning. Via supportsPaperVariant you can check if paperVariant is available for this document. Default: NetverifyDocumentVariantPlastic

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        NetverifyDocumentVariant selectedVariant;

    Swift

    var selectedVariant: NetverifyDocumentVariant { get set }
  • @returns if this document can scan a paper like document.

    Declaration

    Objective-C

    - (BOOL)supportsPaperVariant;

    Swift

    func supportsPaperVariant() -> Bool
  • @returns if this document can scan a plastic document.

    Declaration

    Objective-C

    - (BOOL)supportsPlasticVariant;

    Swift

    func supportsPlasticVariant() -> Bool
  • @returns if this document has more than one variant.

    Declaration

    Objective-C

    - (BOOL)hasMultipleVariants;

    Swift

    func hasMultipleVariants() -> Bool