GooglePlaces Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSPlaceAuthorAttribution\u003c/code\u003e objects represent the source of place information, providing details like the author's name, a link to their profile (\u003ccode\u003eURI\u003c/code\u003e), and a link to their profile photo (\u003ccode\u003ephotoURI\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eUse the \u003ccode\u003einitWithName:URI:photoURI:\u003c/code\u003e method to create a \u003ccode\u003eGMSPlaceAuthorAttribution\u003c/code\u003e instance, providing the author's name, profile link, and profile photo link.\u003c/p\u003e\n"],["\u003cp\u003eAccess the author's name, profile link, and photo link through the \u003ccode\u003ename\u003c/code\u003e, \u003ccode\u003eURI\u003c/code\u003e, and \u003ccode\u003ephotoURI\u003c/code\u003e properties respectively.\u003c/p\u003e\n"]]],["`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"],null,["# GooglePlaces Framework Reference\n\nGMSPlaceAuthorAttribution\n=========================\n\n @interface GMSPlaceAuthorAttribution : NSObject\n\nA class representing an author attribution.\n- `\n ``\n ``\n `\n\n ### [-initWithName:URI:photoURI:](#/c:objc(cs)GMSPlaceAuthorAttribution(im)initWithName:URI:photoURI:)\n\n `\n ` \n Returns the `GMSPlaceAuthorAttribution` with a name, URI, and author photoURI. \n\n #### Declaration\n\n Swift \n\n init(name: String, uri ../Classes/GMSPlaceAuthorAttribution.html#/c:objc(cs)GMSPlaceAuthorAttribution(py)URI: URL?, photoURI: URL?)\n\n Objective-C \n\n - (nonnull instancetype)initWithName:(nonnull NSString *)name\n URI:(nullable NSURL *)URI\n photoURI:(nullable NSURL *)photoURI;\n\n- `\n ``\n ``\n `\n\n ### [name](#/c:objc(cs)GMSPlaceAuthorAttribution(py)name)\n\n `\n ` \n Returns the name of the author. \n\n #### Declaration\n\n Swift \n\n var name: String { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly) NSString *_Nonnull name;\n\n- `\n ``\n ``\n `\n\n ### [URI](#/c:objc(cs)GMSPlaceAuthorAttribution(py)URI)\n\n `\n ` \n Returns the URI of the author. \n\n #### Declaration\n\n Swift \n\n var uri: URL? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSURL *URI;\n\n- `\n ``\n ``\n `\n\n ### [photoURI](#/c:objc(cs)GMSPlaceAuthorAttribution(py)photoURI)\n\n `\n ` \n Returns the profile photo URI of the author. \n\n #### Declaration\n\n Swift \n\n var photoURI: URL? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSURL *photoURI;"]]