public class DocumentScannerActivity extends AppCompatActivity implements CVScanner.ImageProcessorCallback
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXTRA_DOCUMENT_BODY_COLOR |
static java.lang.String |
EXTRA_DOCUMENT_BORDER_COLOR |
static java.lang.String |
EXTRA_IS_PASSPORT |
static java.lang.String |
EXTRA_TORCH_TINT_COLOR |
static java.lang.String |
EXTRA_TORCH_TINT_COLOR_LIGHT |
| Constructor and Description |
|---|
DocumentScannerActivity() |
| Modifier and Type | Method and Description |
|---|---|
void |
onCreate(android.os.Bundle icicle) |
void |
onImageProcessed(java.lang.String imagePath) |
void |
onImageProcessingFailed(java.lang.String reason,
java.lang.Exception error) |
void |
onRequestPermissionsResult(int requestCode,
java.lang.String[] permissions,
int[] grantResults)
Callback for the result from requesting permissions.
|
protected void |
onResume() |
public static final java.lang.String EXTRA_DOCUMENT_BORDER_COLOR
public static final java.lang.String EXTRA_DOCUMENT_BODY_COLOR
public static final java.lang.String EXTRA_TORCH_TINT_COLOR
public static final java.lang.String EXTRA_TORCH_TINT_COLOR_LIGHT
public static final java.lang.String EXTRA_IS_PASSPORT
public void onCreate(android.os.Bundle icicle)
protected void onResume()
public void onRequestPermissionsResult(int requestCode,
java.lang.String[] permissions,
int[] grantResults)
#requestPermissions(String[], int).
Note: It is possible that the permissions request interaction with the user is interrupted. In this case you will receive empty permissions and results arrays which should be treated as a cancellation.
requestCode - The request code passed in #requestPermissions(String[], int).permissions - The requested permissions. Never null.grantResults - The grant results for the corresponding permissions
which is either PackageManager.PERMISSION_GRANTED
or PackageManager.PERMISSION_DENIED. Never null.#requestPermissions(String[], int)public void onImageProcessed(java.lang.String imagePath)
onImageProcessed in interface CVScanner.ImageProcessorCallbackpublic void onImageProcessingFailed(java.lang.String reason,
java.lang.Exception error)
onImageProcessingFailed in interface CVScanner.ImageProcessorCallback