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;