CameraFragmentInterface

Methods which Camera Fragment 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()
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()
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
CameraFragmentImpl
Link copied to clipboard