Page Summary
-
GMSPlacePhotoMetadatastores information about a single photo associated with a Google Maps Place, including attribution, author details, and maximum available size. -
It's crucial to display the
attributionsto the user if the photo is used, complying with the Places SDK Terms of Service. -
authorAttributionsprovide details about the photo's author and should also be shown when displaying the image. -
The
maxSizeproperty indicates the largest dimensions at which the photo can be retrieved.
GMSPlacePhotoMetadata
Deprecated
This class is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit) instead.
@interface GMSPlacePhotoMetadata : NSObjectThe metadata corresponding to a single photo associated with a place.
-
Deprecated
This class is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit) instead.
The data provider attribution string for this photo.
These are provided as a NSAttributedString, which may contain hyperlinks to the website of each provider.
In general, these must be shown to the user if data from this
GMSPlacePhotoMetadatais shown, as described in the Places SDK Terms of Service.Declaration
Swift
@NSCopying var attributions: NSAttributedString? { get }Objective-C
@property (nonatomic, copy, readonly, nullable) NSAttributedString *attributions; -
Deprecated
This class is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit) instead.
The author attributions that must be shown to the user if this photo is displayed.
Declaration
Swift
var authorAttributions: [GMSPlaceAuthorAttribution]? { get }Objective-C
@property (nonatomic, copy, readonly, nullable) NSArray<GMSPlaceAuthorAttribution *> *authorAttributions; -
Deprecated
This class is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit) instead.
The maximum pixel size in which this photo is available.
Declaration
Swift
var maxSize: CGSize { get }Objective-C
@property (nonatomic, readonly) CGSize maxSize; -
Deprecated
This class is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit) instead.
A link where users can flag a problem with the photo.
Declaration
Swift
var flagContentURL: URL? { get }Objective-C
@property (nonatomic, copy, readonly, nullable) NSURL *flagContentURL; -
Deprecated
This class is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit) instead.
A link to show the photo on Google Maps.
Declaration
Swift
var googleMapsURL: URL? { get }Objective-C
@property (nonatomic, copy, readonly, nullable) NSURL *googleMapsURL; -
Deprecated
This class is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit) instead.
Unavailable
Initializer is not available.
Declaration
Objective-C
- (nonnull instancetype)init;