AI-generated Key Takeaways
-
GMSPlaceAuthorAttributionobjects 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 aGMSPlaceAuthorAttributioninstance, 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, andphotoURIproperties respectively.
GMSPlaceAuthorAttribution
@interface GMSPlaceAuthorAttribution : NSObjectA class representing an author attribution.
-
Returns the
GMSPlaceAuthorAttributionwith 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;