public class DocumentScannerFragment extends Fragment implements DocumentTracker.DocumentDetectionListener, android.view.View.OnTouchListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
DocumentScannerFragment.DocumentScannerCallback |
| Constructor and Description |
|---|
DocumentScannerFragment() |
| Modifier and Type | Method and Description |
|---|---|
static DocumentScannerFragment |
instantiate(boolean isPassport) |
void |
onAttach(android.content.Context context) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onDestroy()
Releases the resources associated with the camera source, the associated detectors, and the
rest of the processing pipeline.
|
void |
onDocumentDetected(Document document) |
void |
onPause()
Stops the camera.
|
void |
onResume()
Restarts the camera.
|
boolean |
onTouch(android.view.View v,
android.view.MotionEvent event)
Called when a touch event is dispatched to a view.
|
void |
onViewCreated(android.view.View view,
android.os.Bundle savedInstanceState) |
public static DocumentScannerFragment instantiate(boolean isPassport)
public android.view.View onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
public void onViewCreated(android.view.View view,
android.os.Bundle savedInstanceState)
public void onAttach(android.content.Context context)
public void onResume()
public void onPause()
public void onDestroy()
public void onDocumentDetected(Document document)
onDocumentDetected in interface DocumentTracker.DocumentDetectionListenerpublic boolean onTouch(android.view.View v,
android.view.MotionEvent event)
onTouch in interface android.view.View.OnTouchListenerv - The view the touch event has been dispatched to.event - The MotionEvent object containing full information about
the event.