Enum CameraFeatures.LensFacing

  • All Implemented Interfaces:

    
    public enum CameraFeatures.LensFacing
    
                        

    Helper enum for the lens facing direction to abstract away the differences in camera API 1 and 2

    • Constructor Detail

    • Method Detail

      • fromCamera1

         static CameraFeatures.LensFacing fromCamera1(int camera1Facing)
        Parameters:
        camera1Facing - the camera 1 facing constant
        Returns:

        the matching enum for the given camera 1 constant

      • fromBitFlags

         static EnumSet<CameraFeatures.LensFacing> fromBitFlags(int fallbackCameraBits)

        Returns an EnumSet consisting of all LensFacings whos bits set in fallbackCameraBits. E.g. fallbackCameraBits = 3 -> 011 -> {BACK, FRONT}

      • values

         static Array<CameraFeatures.LensFacing> values()

        Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

        Returns:

        an array containing the constants of this enum type, in the order they're declared

      • valueOf

         static CameraFeatures.LensFacing valueOf(String name)

        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

        Returns:

        the enum constant with the specified name