FetchPhotoRequest

public abstract class FetchPhotoRequest implements Request


Request used by fetchPhoto.

Use builder to get the Builder. Then use this builder to construct the FetchPhotoRequest.

Summary

Nested types

public abstract class FetchPhotoRequest.Builder

Builder for FetchPhotoRequest.

Public constructors

Public methods

static FetchPhotoRequest.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 = 1600) Integer

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

abstract @Nullable @IntRange(from = 1, to = 1600) 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 FetchPhotoRequest
newInstance(PhotoMetadata photoMetadata)

Returns a FetchPhotoRequest.

Public constructors

FetchPhotoRequest

public FetchPhotoRequest()

Public methods

builder

public static FetchPhotoRequest.Builder builder(PhotoMetadata photoMetadata)

Returns a Builder.

Parameters
PhotoMetadata photoMetadata

the PhotoMetadata of the photo to be requested. For more details about PhotoMetadata, see fetchPhoto .

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 = 1600) 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 = 1600) 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 FetchPhotoRequest newInstance(PhotoMetadata photoMetadata)

Returns a FetchPhotoRequest.

Parameters
PhotoMetadata photoMetadata

The PhotoMetadata of the photo to be requested.