Package 

Enum Mode

  • All Implemented Interfaces:
    com.otaliastudios.cameraview.controls.Control

    
    public enum Mode
     implements Control
                        

    Type of the session to be opened or to move to. Session modes have influence over the capture and preview size, ability to shoot pictures, focus modes, runtime permissions needed.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      final static Mode DEFAULT
    • Constructor Summary

      Constructors 
      Constructor Description
      Mode(int value)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      PICTURE

      Session used to capture pictures.- takeVideo will throw an exception- Only the camera permission is requested- Capture size is chosen according to the current picture size selector

      VIDEO

      Session used to capture videos.- takePicture will throw an exception- Camera and audio record permissions are requested- Capture size is chosen according to the current video size selector

    • Method Summary

      Modifier and Type Method Description
      int value()
      static Mode fromValue(int value)
      static Array<Mode> values()
      static Mode valueOf(String name)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait