GMSFetchPhotoRequest Class Reference
Overview
Request object to use with GMSPlacesClient
to fetch a photo.
Public Member Functions | |
(instancetype) | - initWithPhotoMetadata:maxSize: |
Request object to use with GMSPlacesClient to fetch a photo. |
Member Function Documentation
- (instancetype) initWithPhotoMetadata: | (GMSPlacePhotoMetadata *) | photoMetadata | |
maxSize: | (CGSize) | maxSize | |
Request object to use with GMSPlacesClient
to fetch a photo.
- Parameters:
-
photoMetadata GMSPlacePhotoMetadata
The maximum desired size in pixels of the image returned by the Place Photos service.maxSize CGSize
The photo metadata to request. 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. CGSize height and width should be set to an integer between 1 and 4800. If not, theGMSPlacesClient
request callback will return an error.