FetchResolvedPhotoUriRequest

public abstract class FetchResolvedPhotoUriRequest implements Request


Request used by fetchResolvedPhotoUri.

Use builder to get the Builder that constructs the .

Summary

Nested types

Builder for FetchResolvedPhotoUriRequest.

Public constructors

Public methods

static FetchResolvedPhotoUriRequest.Builder
builder(PhotoMetadata photoMetadata)

Returns a Builder.

abstract @Nullable CancellationToken

Returns the CancellationToken used by PlacesClient to cancel any queued requests.

abstract @Nullable @IntRange(from = 1, to = 4800) Integer

Returns the maximum height, in pixels, of the image returned by the Place Photos service.

abstract @Nullable @IntRange(from = 1, to = 4800) Integer

Returns the maximum width, in pixels, of the image returned by the Place Photos service.

abstract PhotoMetadata

Returns the PhotoMetadata of the image returned by the Place Photos service.

static FetchResolvedPhotoUriRequest
newInstance(PhotoMetadata photoMetadata)

Returns a FetchResolvedPhotoUriRequest.

Public constructors

FetchResolvedPhotoUriRequest

public FetchResolvedPhotoUriRequest()

Public methods

builder

public static FetchResolvedPhotoUriRequest.Builder builder(PhotoMetadata photoMetadata)

Returns a Builder.

Parameters
PhotoMetadata photoMetadata

The PhotoMetadata of the photo to be requested. This PhotoMetadata must be fetched by using Places API (New). You must first call initializeWithNewPlacesApiEnabled to initialize the PlaceClient and fetch the PhotoMetadata. The build() method will throw an IllegalArgumentException if the PhotoMetadata provided is invalid.

getCancellationToken

public abstract @Nullable CancellationToken getCancellationToken()

Returns the CancellationToken used by PlacesClient to cancel any queued requests.

getMaxHeight

public abstract @Nullable @IntRange(from = 1, to = 4800) Integer getMaxHeight()

Returns the maximum height, in pixels, of the image returned by the Place Photos service. See setMaxHeight for details on the value range.

getMaxWidth

public abstract @Nullable @IntRange(from = 1, to = 4800) Integer getMaxWidth()

Returns the maximum width, in pixels, of the image returned by the Place Photos service. See setMaxWidth for details on the value range.

getPhotoMetadata

public abstract PhotoMetadata getPhotoMetadata()

Returns the PhotoMetadata of the image returned by the Place Photos service.

newInstance

public static FetchResolvedPhotoUriRequest newInstance(PhotoMetadata photoMetadata)

Returns a FetchResolvedPhotoUriRequest.

Parameters
PhotoMetadata photoMetadata

The PhotoMetadata of the photo to be requested. This PhotoMetadata must be fetched by using Places API (New). You must first call initializeWithNewPlacesApiEnabled to initialize the PlaceClient and fetch the PhotoMetadata. The build() method will throw an IllegalArgumentException if the PhotoMetadata provided is invalid.