AI-generated Key Takeaways
- 
          GMSFetchPhotoRequestobjects are used withGMSPlacesClientto retrieve photos for places.
- 
          The designated initializer, initWithPhotoMetadata:maxSize:, allows specifying the photo metadata and the desired maximum size for the image.
- 
          The photoMetadataparameter provides details about the photo being requested.
- 
          The maxSizeparameter determines the maximum dimensions of the returned image, ensuring it's scaled appropriately while preserving its aspect ratio.
- 
          The default initializer, init, is unavailable; use the designated initializer instead.
GMSFetchPhotoRequest
@interface GMSFetchPhotoRequest : NSObjectRequest object to use with GMSPlacesClient to fetch a photo.
- 
                  
                  Request object to use with GMSPlacesClientto fetch a photo.DeclarationSwift init(photoMetadata: GMSPlacePhotoMetadata, maxSize: CGSize)Objective-C - (nonnull instancetype)initWithPhotoMetadata: (nonnull GMSPlacePhotoMetadata *)photoMetadata maxSize:(CGSize)maxSize;ParametersphotoMetadataGMSPlacePhotoMetadataThe maximum desired size in pixels of the image returned by the Place Photos service.maxSizeCGSizeThe 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, theGMSPlacesClientrequest callback will return an error.
- 
                  
                  Unavailable Default init is not available. Please use the designated initializer. DeclarationObjective-C - (nonnull instancetype)init;