Package 

Interface CameraFragmentInterface

  • All Implemented Interfaces:

    
    public interface CameraFragmentInterface
    
                        

    Methods which Camera Fragment must implement.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void setListener(@NonNull() CameraFragmentListener listener) Set a listener for camera events.
      abstract void showInterface() Call this method to show the interface elements.
      abstract void hideInterface() Call this method to hide the interface elements.
      abstract void showActivityIndicatorAndDisableInteraction() Call this method to show an activity indicator and disable user interaction.
      abstract void hideActivityIndicatorAndEnableInteraction() Call this method to hide the activity indicator and enable user interaction.
      abstract void showError(@NonNull() String message, int duration) Call this method to show an error message to the user in the Camera Screen.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.

      • showError

         abstract void showError(@NonNull() String message, int duration)

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

        Parameters:
        message - a short error message
        duration - how long should the error message be shown in ms