-
- All Implemented Interfaces:
public interface CameraFragmentInterfaceMethods which Camera Fragment must implement.
-
-
Method Summary
Modifier and Type Method Description abstract voidsetListener(@NonNull() CameraFragmentListener listener)Set a listener for camera events. abstract voidshowInterface()Call this method to show the interface elements. abstract voidhideInterface()Call this method to hide the interface elements. abstract voidshowActivityIndicatorAndDisableInteraction()Call this method to show an activity indicator and disable user interaction. abstract voidhideActivityIndicatorAndEnableInteraction()Call this method to hide the activity indicator and enable user interaction. abstract voidshowError(@NonNull() String message, int duration)Call this method to show an error message to the user in the Camera Screen. -
-
Method Detail
-
setListener
abstract void setListener(@NonNull() 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.
- Parameters:
listener- the CameraFragmentListener instance
-
showInterface
abstract void showInterface()
Call this method to show the interface elements. The camera preview is always visible.
Note: the interface elements are shown by default.
-
hideInterface
abstract void hideInterface()
Call this method to hide the interface elements. The camera preview remains visible.
Note: the interface elements are shown by default.
-
showActivityIndicatorAndDisableInteraction
abstract void showActivityIndicatorAndDisableInteraction()
Call this method to show an activity indicator and disable user interaction. The camera preview remains visible.
-
hideActivityIndicatorAndEnableInteraction
abstract void hideActivityIndicatorAndEnableInteraction()
Call this method to hide the activity indicator and enable user interaction.
-
-
-
-