AI-generated Key Takeaways
-
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 aGMSPlaceAuthorAttribution
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
, andphotoURI
properties respectively.
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;