GooglePlaces Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSFetchPhotoResultCallback
typedef void (^GMSFetchPhotoResultCallback)(UIImage *_Nullable,
NSError *_Nullable)
Callback type for receiving a photo. photoImage
is a UIImage
representing the resulting photo matching the specified request.
If an error occurred, photoImage
will be nil and error
will contain
information about the error.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSFetchPhotoResultCallback\u003c/code\u003e is a callback type used to receive a photo.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a \u003ccode\u003eUIImage\u003c/code\u003e representing the requested photo and an \u003ccode\u003eNSError\u003c/code\u003e if any error occurred during the fetch.\u003c/p\u003e\n"],["\u003cp\u003eIf successful, \u003ccode\u003ephotoImage\u003c/code\u003e contains the image; otherwise, it's nil and \u003ccode\u003eerror\u003c/code\u003e provides error details.\u003c/p\u003e\n"]]],["This describes the `GMSFetchPhotoResultCallback`, a callback type for receiving a photo. It provides a `UIImage` named `photoImage`, representing the requested photo. If an error occurs, `photoImage` will be nil, and an `NSError` object will contain error details. This callback is used in conjunction with `GMSPlacesClient`.\n"],null,["# GooglePlaces Framework Reference\n\nGMSFetchPhotoResultCallback\n===========================\n\n typedef void (^GMSFetchPhotoResultCallback)(UIImage *_Nullable,\n NSError *_Nullable)\n\nCallback type for receiving a photo. `photoImage` is a `UIImage`\nrepresenting the resulting photo matching the specified request.\nIf an error occurred, `photoImage` will be nil and `error` will contain\ninformation about the error. \nSee\n\n[GMSPlacesClient](../Classes/GMSPlacesClient.html)"]]