implements Request
Request used by PlacesClient.fetchResolvedPhotoUri(FetchResolvedPhotoUriRequest)
.
Use builder(PhotoMetadata)
to get the FetchResolvedPhotoUriRequest.Builder
that constructs the FetchResolvedPhotoUriRequest
.
Nested Class Summary
class | FetchResolvedPhotoUriRequest.Builder | Builder for FetchResolvedPhotoUriRequest . |
Public Constructor Summary
Public Method Summary
static FetchResolvedPhotoUriRequest.Builder | |
abstract CancellationToken |
getCancellationToken()
Returns the
CancellationToken used by PlacesClient to cancel any queued
requests. |
abstract Integer |
getMaxHeight()
Returns the maximum height, in pixels, of the image returned by the Place Photos service.
|
abstract Integer |
getMaxWidth()
Returns the maximum width, in pixels, of the image returned by the Place Photos service.
|
abstract PhotoMetadata |
getPhotoMetadata()
Returns the
PhotoMetadata of the image returned by the Place Photos service. |
static FetchResolvedPhotoUriRequest |
Inherited Method Summary
Public Constructors
public FetchResolvedPhotoUriRequest ()
Public Methods
public static FetchResolvedPhotoUriRequest.Builder builder (PhotoMetadata photoMetadata)
Returns a FetchResolvedPhotoUriRequest.Builder
.
Parameters
photoMetadata | The PhotoMetadata of the photo to be requested. This PhotoMetadata
must be fetched by using Places API (New). You must first call Places.initializeWithNewPlacesApiEnabled(Context, String) to
initialize the PlaceClient and fetch the PhotoMetadata. The build() method will throw an
IllegalArgumentException if the PhotoMetadata provided is invalid.
|
---|
public abstract CancellationToken getCancellationToken ()
Returns the CancellationToken
used by PlacesClient
to cancel any queued
requests.
public abstract Integer getMaxHeight ()
Returns the maximum height, in pixels, of the image returned by the Place Photos service. See
FetchResolvedPhotoUriRequest.Builder.setMaxHeight(Integer)
for details on the value range.
public abstract Integer getMaxWidth ()
Returns the maximum width, in pixels, of the image returned by the Place Photos service. See
FetchResolvedPhotoUriRequest.Builder.setMaxWidth(Integer)
for details on the value range.
public abstract PhotoMetadata getPhotoMetadata ()
Returns the PhotoMetadata
of the image returned by the Place Photos service.
public static FetchResolvedPhotoUriRequest newInstance (PhotoMetadata photoMetadata)
Returns a FetchResolvedPhotoUriRequest
.
Parameters
photoMetadata | The PhotoMetadata of the photo to be requested. This PhotoMetadata
must be fetched by using Places API (New). You must first call Places.initializeWithNewPlacesApiEnabled(Context, String) to
initialize the PlaceClient and fetch the PhotoMetadata. The build() method will throw an
IllegalArgumentException if the PhotoMetadata provided is invalid.
|
---|