public final class

ExifData.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.camera.core.impl.utils.ExifData.Builder

Overview

Builder for the ExifData class.

Summary

Methods
public ExifDatabuild()

Builds an ExifData from the current state of the builder.

public ExifData.BuilderremoveAttribute(java.lang.String tag)

Removes the attribute with the given tag.

public ExifData.BuildersetAttribute(java.lang.String tag, java.lang.String value)

Sets the value of the specified tag.

public ExifData.BuildersetExposureTimeNanos(long exposureTimeNs)

Sets the amount of time the sensor was exposed for, in nanoseconds.

public ExifData.BuildersetFlashState(CameraCaptureMetaData.FlashState flashState)

Sets the flash information from CameraCaptureMetaData.FlashState.

public ExifData.BuildersetFocalLength(float focalLength)

Sets lens focal length, in millimeters.

public ExifData.BuildersetImageHeight(int height)

Sets the height of the image.

public ExifData.BuildersetImageWidth(int width)

Sets the width of the image.

public ExifData.BuildersetIso(int iso)

Sets the ISO.

public ExifData.BuildersetLensFNumber(float fNumber)

Sets the lens f-number.

public ExifData.BuildersetOrientationDegrees(int orientationDegrees)

Sets the orientation of the image in degrees.

public ExifData.BuildersetWhiteBalanceMode(ExifData.WhiteBalanceMode whiteBalanceMode)

Sets the white balance mode.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public ExifData.Builder setImageWidth(int width)

Sets the width of the image.

Parameters:

width: the width of the image.

public ExifData.Builder setImageHeight(int height)

Sets the height of the image.

Parameters:

height: the height of the image.

public ExifData.Builder setOrientationDegrees(int orientationDegrees)

Sets the orientation of the image in degrees.

Parameters:

orientationDegrees: the orientation in degrees. Can be one of (0, 90, 180, 270)

public ExifData.Builder setFlashState(CameraCaptureMetaData.FlashState flashState)

Sets the flash information from CameraCaptureMetaData.FlashState.

Parameters:

flashState: the state of the flash at capture time.

public ExifData.Builder setExposureTimeNanos(long exposureTimeNs)

Sets the amount of time the sensor was exposed for, in nanoseconds.

Parameters:

exposureTimeNs: The exposure time in nanoseconds.

public ExifData.Builder setLensFNumber(float fNumber)

Sets the lens f-number.

The lens f-number has precision 1.xx, for example, 1.80.

Parameters:

fNumber: The f-number.

public ExifData.Builder setIso(int iso)

Sets the ISO.

Parameters:

iso: the standard ISO sensitivity value, as defined in ISO 12232:2006.

public ExifData.Builder setFocalLength(float focalLength)

Sets lens focal length, in millimeters.

Parameters:

focalLength: The lens focal length in millimeters.

public ExifData.Builder setWhiteBalanceMode(ExifData.WhiteBalanceMode whiteBalanceMode)

Sets the white balance mode.

Parameters:

whiteBalanceMode: The white balance mode. One of ExifData.WhiteBalanceMode.AUTO or ExifData.WhiteBalanceMode.MANUAL.

public ExifData.Builder setAttribute(java.lang.String tag, java.lang.String value)

Sets the value of the specified tag.

Parameters:

tag: the name of the tag.
value: the value of the tag.

public ExifData.Builder removeAttribute(java.lang.String tag)

Removes the attribute with the given tag.

Parameters:

tag: the name of the tag.

public ExifData build()

Builds an ExifData from the current state of the builder.