PhotoMetadata.Builder

public abstract class PhotoMetadata.Builder


Builder for PhotoMetadata.

Summary

Public constructors

Public methods

PhotoMetadata

Builds the PhotoMetadata.

abstract String
abstract @Nullable AuthorAttributions
abstract @IntRange(from = 0) int
abstract @IntRange(from = 0) int
abstract PhotoMetadata.Builder
setAttributions(String attributions)
abstract PhotoMetadata.Builder
abstract PhotoMetadata.Builder
setHeight(@IntRange(from = 0) int height)
abstract PhotoMetadata.Builder
setWidth(@IntRange(from = 0) int width)

Public constructors

Builder

public Builder()

Public methods

build

public PhotoMetadata build()

Builds the PhotoMetadata.

Throws
java.lang.IllegalArgumentException

If width or height is <0, or photoReference is empty.

getAttributions

public abstract String getAttributions()

getAuthorAttributions

public abstract @Nullable AuthorAttributions getAuthorAttributions()

getHeight

public abstract @IntRange(from = 0) int getHeight()

getWidth

public abstract @IntRange(from = 0) int getWidth()

setAttributions

public abstract PhotoMetadata.Builder setAttributions(String attributions)

setAuthorAttributions

public abstract PhotoMetadata.Builder setAuthorAttributions(@Nullable AuthorAttributions authorAttributions)

setHeight

public abstract PhotoMetadata.Builder setHeight(@IntRange(from = 0) int height)

setWidth

public abstract PhotoMetadata.Builder setWidth(@IntRange(from = 0) int width)