FetchPhotoRequest.Builder

public static abstract class FetchPhotoRequest.Builder extends Object

Builder for FetchPhotoRequest.

Public Constructor Summary

Public Method Summary

FetchPhotoRequest
build()
abstract FetchPhotoRequest.Builder
setCancellationToken(CancellationToken cancellationToken)
Sets the CancellationToken used by PlacesClient to cancel any yet-to-be-executed 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 FetchPhotoRequest.Builder ()

Public Methods

public FetchPhotoRequest build ()

Build the FetchPhotoRequest.

public abstract FetchPhotoRequest.Builder setCancellationToken (CancellationToken cancellationToken)

Sets the CancellationToken used by PlacesClient to cancel any yet-to-be-executed 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

Send feedback about...

Places SDK for Android