CameraFragmentInterface

Methods which both Camera Fragments must implement.

public interface CameraFragmentInterface

Functions

hideActivityIndicatorAndEnableInteraction
Link copied to clipboard

Call this method to hide the activity indicator and enable user interaction.

abstract void hideActivityIndicatorAndEnableInteraction()
hideCameraTriggerButton
Link copied to clipboard

Call this method to hide the camera trigger button.

Note: the camera trigger button is shown by default.

abstract void hideCameraTriggerButton()
hideDocumentCornerGuides
Link copied to clipboard

Call this method to hide the document corner guides.

Note: the document corner guides are shown by default.

abstract void hideDocumentCornerGuides()
hideInterface
Link copied to clipboard

Call this method to hide the interface elements. The camera preview remains visible.

Note: the interface elements are shown by default.

abstract void hideInterface()
setListener
Link copied to clipboard

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.

abstract void setListener(CameraFragmentListener listener)
showActivityIndicatorAndDisableInteraction
Link copied to clipboard

Call this method to show an activity indicator and disable user interaction. The camera preview remains visible.

abstract void showActivityIndicatorAndDisableInteraction()
showCameraTriggerButton
Link copied to clipboard

Call this method to show the camera trigger button.

Note: the camera trigger button is shown by default.

abstract void showCameraTriggerButton()
showDocumentCornerGuides
Link copied to clipboard

Call this method to show the document corner guides.

Note: the document corner guides are shown by default.

abstract void showDocumentCornerGuides()
showError
Link copied to clipboard

Call this method to show an error message to the user in the Camera Screen.

abstract void showError(String message, int duration)
showInterface
Link copied to clipboard

Call this method to show the interface elements. The camera preview is always visible.

Note: the interface elements are shown by default.

abstract void showInterface()

Inheritors

CameraFragmentCompat
Link copied to clipboard
CameraActivity
Link copied to clipboard
CameraFragmentStandard
Link copied to clipboard
CameraFragmentImpl
Link copied to clipboard