FetchPhotoRequest

public abstract class FetchPhotoRequest extends Object
implements Request

Nested Class Summary

class FetchPhotoRequest.Builder Builder for FetchPhotoRequest

Public Constructor Summary

Public Method Summary

static FetchPhotoRequest.Builder
builder(PhotoMetadata photoMetadata)
abstract CancellationToken
getCancellationToken()
Returns the CancellationToken used by PlacesClient to cancel any yet-to-be-executed requests.
abstract Integer
getMaxHeight()
Returns the maximum height, in pixels, of the image to be returned by the Place Photos service.
abstract Integer
getMaxWidth()
Returns the maximum width, in pixels, of the image to be returned by the Place Photos service.
abstract PhotoMetadata
getPhotoMetadata()
Returns the PhotoMetadata of the image to be returned by the Place Photos service.
static FetchPhotoRequest
newInstance(PhotoMetadata photoMetadata)

Inherited Method Summary

Public Constructors

public FetchPhotoRequest ()

Public Methods

public static FetchPhotoRequest.Builder builder (PhotoMetadata photoMetadata)

Parameters
photoMetadata the PhotoMetadata of the photo to be requested. See fetchPhoto(FetchPhotoRequest) for more details about PhotoMetadata.

public abstract CancellationToken getCancellationToken ()

Returns the CancellationToken used by PlacesClient to cancel any yet-to-be-executed requests.

public abstract Integer getMaxHeight ()

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

public abstract Integer getMaxWidth ()

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

public abstract PhotoMetadata getPhotoMetadata ()

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

public static FetchPhotoRequest newInstance (PhotoMetadata photoMetadata)

Parameters
photoMetadata The PhotoMetadata of the photo to be requested.

Enviar comentários sobre…