GooglePlaces Framework Reference
GMSPlaceAuthorAttribution
@interface GMSPlaceAuthorAttribution : NSObject
A class representing an author attribution.
-
Returns the GMSPlaceAuthorAttribution
with a name, URI, and author photoURI.
Declaration
Swift
init(name: String, uri URI: URL?, photoURI: URL?)
Objective-C
- (nonnull instancetype)initWithName:(nonnull NSString *)name
URI:(nullable NSURL *)URI
photoURI:(nullable NSURL *)photoURI;
-
Returns the name of the author.
Declaration
Swift
var name: String { get }
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull name;
-
Returns the URI of the author.
Declaration
Swift
var uri: URL? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSURL *URI;
-
Returns the profile photo URI of the author.
Declaration
Swift
var photoURI: URL? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSURL *photoURI;
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 2024-11-08 UTC.
[null,null,["Last updated 2024-11-08 UTC."],[[["`GMSPlaceAuthorAttribution` objects represent the source of place information, providing details like the author's name, a link to their profile (`URI`), and a link to their profile photo (`photoURI`)."],["Use the `initWithName:URI:photoURI:` method to create a `GMSPlaceAuthorAttribution` instance, providing the author's name, profile link, and profile photo link."],["Access the author's name, profile link, and photo link through the `name`, `URI`, and `photoURI` properties respectively."]]],["`GMSPlaceAuthorAttribution` represents author information. It can be initialized with an author's name, URI, and photo URI. It provides read-only access to the author's `name` (string), `URI` (URL), and `photoURI` (URL). The class uses these properties to store author attribution data. The information is accessible through both Swift and Objective-C interfaces.\n"]]