Package 

Enum Mode

  • All Implemented Interfaces:
    com.otaliastudios.cameraview.controls.Control , java.io.Serializable , java.lang.Comparable

    
    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.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      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

      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

    • Method Summary

      Modifier and Type Method Description
      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