GMSPlaceReview 類別參考

GMSPlaceReview 類別參考

公開成員函式

(instancetype)- initWithPublishDate:relativePublishDateDescription:text:textLanguageCode:originalText:originalTextLanguageCode:rating:authorAttribution:
 使用詳細資料屬性將 GMSPlaceReview 例項化。

資源

NSDate * publishDate
 發布評論的 NSDate
NSString * relativePublishDateDescription
 經過格式化的字串,以表示目前時間的評論日期/時間。
NSString * 文字
 評論的文字。
NSString * textLanguageCode
 評論文字的語言代碼。
NSString * originalText
 評論文字 (原文)。
NSString * originalTextLanguageCode
 評論原文的語言代碼。
雙精準數評分
 介於 1.0 到 5.0 (a.k.a) 之間的整數。
GMSPlaceAuthorAttributionauthorAttribution
 系統顯示這則評論時必須向使用者顯示的出處資訊。

成員函式說明文件

- (instancetype) initWithPublishDate: (NSDate *) publishDate
relativePublishDateDescription: (nullable NSString *)  relativePublishDateDescription
文字: (nullable NSString *)  文字
textLanguageCode: (nullable NSString *)  textLanguageCode
原文: (nullable NSString *)  originalText
originTextLanguageCode: (nullable NSString *)  originalTextLanguageCode
評分: (float)  評分
作者姓名: (可為空值GMSPlaceAuthorAttribution *) authorAttribution

使用詳細資料屬性將 GMSPlaceReview 例項化。

參數:
publishDate發布評論的 NSDate
relativePublishDateDescription發布日期 (相對於要求時間) 的說明。
text評論的本地化文字。
textLanguageCode本地化評論文字的語言代碼。
originalText評論文字 (原文)。
originalTextLanguageCode評論原本撰寫時所用的語言代碼。
rating與評論相關聯的 0.0 - 5.0 評分。
authorAttribution評論作者的 GMSPlaceAuthorAttribution

資源說明文件

- (NSDate*) publishDate [read, copy]

發布評論的 NSDate

- (NSString*) relativePublishDateDescription [read, copy]

經過格式化的字串,以表示目前時間的評論日期/時間。

特定語言和國家/地區特定版本 (例如「6 個月前」)。

- (NSString*) 文字 [read, copy]

評論的文字。

- (NSString*) textLanguageCode [read, copy]

評論文字的語言代碼。

- (NSString*) originalText [read, copy]

評論文字 (原文)。

- (NSString*) originalTextLanguageCode [read, copy]

評論原文的語言代碼。

- (雙倍) 評分 [read, assign]

介於 1.0 到 5.0 (a.k.a) 之間的整數

也就是星級評等

系統顯示這則評論時必須向使用者顯示的出處資訊。

詳情請參閱其他作者資訊規定