FetchPhotoRequest.Builder

public static abstract class FetchPhotoRequest.Builder extends Object

Builder for FetchPhotoRequest.

Public Constructor Summary

Public Method Summary

FetchPhotoRequest
build()
abstract CancellationToken
getCancellationToken()
Gets the CancellationToken used by PlacesClient to cancel any queued requests.
abstract Integer
getMaxHeight()
Gets the maximum desired height in pixels, of the image returned by the Place Photos service.
abstract Integer
getMaxWidth()
Gets the maximum desired width in pixels of the image returned by the Place Photos service.
abstract FetchPhotoRequest.Builder
setCancellationToken(CancellationToken cancellationToken)
Sets the CancellationToken used by PlacesClient to cancel any queued requests.
abstract FetchPhotoRequest.Builder
setMaxHeight(Integer maxHeight)
Sets the maximum desired height in pixels, of the image returned by the Place Photos service.
abstract FetchPhotoRequest.Builder
setMaxWidth(Integer maxWidth)
Sets the maximum desired width in pixels of the image returned by the Place Photos service.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public FetchPhotoRequest build ()

Build the FetchPhotoRequest.

public abstract CancellationToken getCancellationToken ()

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

public abstract Integer getMaxHeight ()

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

If the image is smaller than the values specified, the original image will be returned. If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio. Both setMaxHeight(Integer) and setMaxWidth(Integer) properties should be set to an integer between 1 and 1600.

public abstract Integer getMaxWidth ()

Gets the maximum desired width in pixels of the image returned by the Place Photos service.

If the image is smaller than the values specified, the original image will be returned. If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio. Both setMaxHeight(Integer) and setMaxWidth(Integer) properties should be set to an integer between 1 and 1600.

public abstract FetchPhotoRequest.Builder setCancellationToken (CancellationToken cancellationToken)

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

Parameters
cancellationToken

public abstract FetchPhotoRequest.Builder setMaxHeight (Integer maxHeight)

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

If the image is smaller than the values specified, the original image will be returned. If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio. Both setMaxHeight(Integer) and setMaxWidth(Integer) properties should be set to an integer between 1 and 1600.

Parameters
maxHeight

public abstract FetchPhotoRequest.Builder setMaxWidth (Integer maxWidth)

Sets the maximum desired width in pixels of the image returned by the Place Photos service.

If the image is smaller than the values specified, the original image will be returned. If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio. Both setMaxHeight(Integer) and setMaxWidth(Integer) properties should be set to an integer between 1 and 1600.

Parameters
maxWidth