Comment on page
DocumentModel
A base class containing images for a scanned document
import com.sybrin.identity.models.DocumentModel
Public methods | | Data source |
N/A | ||
Bitmap | Front of document | |
String | Local storage | |
Bitmap | Front of document | |
String | Local storage | |
Bitmap | Front of document | |
String | Local storage | |
void | Saves all images within the model to the local device and populates all path fields. | N/A |
Casts the current model to the type specified by the class parameter. The specified type must be a child of DocumentModel.
Parameters | |
class | Class<T>: Type of class the result is being cast to. |
Returns | |
Value is null if casting was not possible. |
public Bitmap getCroppedDocumentImage ()
Returns a cropped image of the scanned document.
Returns | |
Bitmap | This value cannot be null . |
public String getCroppedDocumentImagePath ()
Returns the file path of the saved cropped document image.
Returns | |
String | Value is null if image was not saved. |
public Bitmap getDocumentImage ()
Returns an image of the scanned document.
Returns | |
Bitmap | This value cannot be null . |
public String getDocumentImagePath ()
Returns the file path of the saved document image.
Returns | |
String | Value is null if image was not saved. |
public Bitmap getPortraitImage ()
Returns cropped image of the face found on the scanned document.
Returns | |
Bitmap | This value cannot be null . |
public String getPortraitImagePath ()
Returns the file path of the saved portrait image.
Returns | |
String | Value is null if image was not saved. |
public void saveImage (Context context)
Saves all images within the model to the local device and populates all path fields.
Parameters | |
Context | Value cannot be null . |
Last modified 1yr ago