public interface CameraFragmentInterface
Methods which both Camera Fragments must implement.
Modifier and Type | Method and Description |
---|---|
void |
hideActivityIndicatorAndEnableInteraction()
Call this method to hide the activity indicator and enable user interaction.
|
void |
hideCameraTriggerButton()
Deprecated.
Use
CameraFragmentInterface.hideInterface() instead. |
void |
hideDocumentCornerGuides()
Deprecated.
Use
CameraFragmentInterface.hideInterface() instead. |
void |
hideInterface()
Call this method to hide the interface elements.
|
void |
setListener(CameraFragmentListener listener)
Set a listener for camera events.
|
void |
showActivityIndicatorAndDisableInteraction()
Call this method to show an activity indicator and disable user interaction.
|
void |
showCameraTriggerButton()
Deprecated.
Use
CameraFragmentInterface.showInterface() instead. |
void |
showDocumentCornerGuides()
Deprecated.
Use
CameraFragmentInterface.showInterface() instead. |
void |
showError(java.lang.String message,
int duration)
Call this method to show an error message to the user in the Camera Screen.
|
void |
showInterface()
Call this method to show the interface elements.
|
void setListener(CameraFragmentListener listener)
Set a listener for camera events.
By default the hosting Activity is expected to implement
the CameraFragmentListener
. In case that is not feasible you may set the
listener using this method.
Note: the listener is expected to be available until the fragment is attached to an activity. Make sure to set the listener before that.
listener
- the CameraFragmentListener
instance@Deprecated void showDocumentCornerGuides()
CameraFragmentInterface.showInterface()
instead.Call this method to show the document corner guides.
Note: the document corner guides are shown by default.
@Deprecated void hideDocumentCornerGuides()
CameraFragmentInterface.hideInterface()
instead.Call this method to hide the document corner guides.
Note: the document corner guides are shown by default.
@Deprecated void showCameraTriggerButton()
CameraFragmentInterface.showInterface()
instead.Call this method to show the camera trigger button.
Note: the camera trigger button is shown by default.
@Deprecated void hideCameraTriggerButton()
CameraFragmentInterface.hideInterface()
instead.Call this method to hide the camera trigger button.
Note: the camera trigger button is shown by default.
void showInterface()
Call this method to show the interface elements. The camera preview is always visible.
Note: the interface elements are shown by default.
void hideInterface()
Call this method to hide the interface elements. The camera preview remains visible.
Note: the interface elements are shown by default.
void showActivityIndicatorAndDisableInteraction()
Call this method to show an activity indicator and disable user interaction. The camera preview remains visible.
void hideActivityIndicatorAndEnableInteraction()
Call this method to hide the activity indicator and enable user interaction.
void showError(java.lang.String message, int duration)
Call this method to show an error message to the user in the Camera Screen.
message
- a short error messageduration
- how long should the error message be shown in ms