FetchResolvedPhotoUriRequest.Builder

public static abstract class FetchResolvedPhotoUriRequest.Builder extends Object

Public Constructor Summary

Public Method Summary

FetchResolvedPhotoUriRequest
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 FetchResolvedPhotoUriRequest.Builder
setCancellationToken(CancellationToken cancellationToken)
Sets the CancellationToken used by PlacesClient to cancel any queued requests.
abstract FetchResolvedPhotoUriRequest.Builder
setMaxHeight(Integer maxHeight)
Sets the maximum desired height, in pixels, of the image returned by the Place Photos service.
abstract FetchResolvedPhotoUriRequest.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 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.

The request must include max width or max height. If both max width and max height are not set, and the PhotoMetadata contains a width or height value other than 0, the builder will use the PhotoMetadata's width or height as the max width or max height.

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 4800.

public abstract Integer getMaxWidth ()

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

The request must include max width or max height. If both max width and max height are not set, and the PhotoMetadata contains a width or height value other than 0, the builder will use the PhotoMetadata's width or height as the max width or max height.

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 4800.

public abstract FetchResolvedPhotoUriRequest.Builder setCancellationToken (CancellationToken cancellationToken)

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

Parameters
cancellationToken

public abstract FetchResolvedPhotoUriRequest.Builder setMaxHeight (Integer maxHeight)

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

The request must include max width or max height. If both max width and max height are not set, and the PhotoMetadata contains a width or height value other than 0, the builder will use the PhotoMetadata's width or height as the max width or max height.

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 4800.

Parameters
maxHeight

public abstract FetchResolvedPhotoUriRequest.Builder setMaxWidth (Integer maxWidth)

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

The request must include max width or max height. If both max width and max height are not set, and the PhotoMetadata contains a width or height value other than 0, the builder will use the PhotoMetadata's width or height as the max width or max height.

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 4800.

Parameters
maxWidth