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 之间的整数,也称为
GMSPlaceAuthorAttributionauthorAttribution
 显示此评价时必须向用户显示的提供方说明。

成员函数文档

- (instancetype) initWithPublishDate: (NSDate *) publishDate
relativePublishDateDescription: (nullable NSString *)  relativePublishDateDescription
文本: (nullable NSString *)  文本
textLanguageCode: (nullable NSString *)  textLanguageCode
原始文本: (nullable NSString *)  originalText
originTextLanguageCode: (nullable NSString *)  originalTextLanguageCode
评分: (float)  评分
authorAttribution: (可为 null 的 GMSPlaceAuthorAttribution *) authorAttribution

使用详情属性实例化 GMSPlaceReview

参数:
publishDate评价发布的 NSDate
relativePublishDateDescription相对于请求时间的发布日期说明。
text评价的本地化文本。
textLanguageCode本地化评价文字的语言代码。
originalText原始语言版本的评价文字。
originalTextLanguageCode评价最初编写时使用的语言代码。
评分评价所关联的介于 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]

评价原文的语言代码。

-(双精度)rating [read, assign]

一个介于 1.0 和 5.0 之间的整数,也称为

星数。

显示此评价时必须向用户显示的提供方说明。

如需了解详情,请参阅其他归因要求