DriversLicenseModel

A class derived from DocumentModel containing details pertaining to all driver's licenses

import com.sybrin.identity.models.DriversLicenseModel

extends DocumentModel

Summary

Public methods

Data source

Bitmap

Back of document

String

Local storage

String

OCR

Inherited methods

Data source

<T extends DocumentModel>

castToModel(Class<T> class)

Casts the current model to the

type specified by the class parameter.

N/A

Bitmap

Front of document

String

Local storage

Bitmap

Front of document

String

Local storage

Bitmap

Front of document

String

Local storage

void

saveImages(Context context)

Saves all images within the model

to the local device and populates

all path fields.

N/A

Public methods

getDocumentBackImage

public Bitmap getCroppedDocumentBackImage ()

Returns an image of the back of the scanned document.

Returns

Bitmap

This value cannot be null.

getDocumentBackImagePath

public String getCroppedDocumentBackImagePath ()

Returns the file path of the saved back of the document image.

Returns

String

Value is null if image was not saved.

getLicenseNumber

public String getLicenseNumber ()

Returns the driver's license document's license number as found on the driver's license.

Returns

String

The driver's license document's license number. This value cannot be null.