GMSNavigationTermsDialogUIParams 类参考

GMSNavigationTermsDialogUIParams 类参考

概览

用于描述对话框外观和风格的参数。

公共成员函数

(instancetype)- initWithBackgroundColor:titleFont:titleColor:mainTextFont:mainTextColor:buttonsFont:cancelButtonTextColor:acceptButtonTextColor:
 构造一个 GMSNavigationTermsDialogUIParams 对象。

属性

UIColor * backgroundColor
 用于对话框背景颜色的颜色。
UIFont * titleFont
 标题文字所用的字体。
UIColor * titleColor
 标题中文字的颜色。
UIFont * mainTextFont
 字体用于条款和驾照免责声明的文字内容。
UIColor * mainTextColor
 条款和驾驶感知免责声明的文字颜色。
UIFont * buttonsFont
 用于“取消”和“接受”按钮上的文本的字体。
UIColor * cancelButtonTextColor
 已弃用。
UIColor * acceptButtonTextColor
 “接受”按钮的文字颜色。

成员函数文档

- (instancetype) initWithBackgroundColor: (nullable UIColor *)  backgroundColor
titleFont: (可为 null 的 UIFont *) titleFont
titleColor: (nullable UIColor *)  titleColor
mainTextFont: (可为 null 的 UIFont *) mainTextFont
mainTextColor: (nullable UIColor *)  mainTextColor
buttonsFont: (可为 null 的 UIFont *) buttonsFont
cancelButtonTextColor: (nullable UIColor *)  cancelButtonTextColor
applyButtonTextColor: (nullable UIColor *)  acceptButtonTextColor

构造一个 GMSNavigationTermsDialogUIParams 对象。

如需了解参数的含义,请参阅属性注释。


属性说明

- (UIColor*) backgroundColor [read, assign]

用于对话框背景颜色的颜色。

- (UIFont*) titleFont [read, assign]

标题文字所用的字体。

- (UIColor*) titleColor [read, assign]

标题中文字的颜色。

- (UIFont*) mainTextFont [read, assign]

字体用于条款和驾照免责声明的文字内容。

- (UIColor*) mainTextColor [read, assign]

条款和驾驶感知免责声明的文字颜色。

- (UIFont*) buttonsFont [read, assign]

用于“取消”和“接受”按钮上的文本的字体。

- (UIColor*) cancelButtonTextColor [read, assign]

已弃用。

已从对话框中移除“取消”按钮。

“Cancel”按钮的文字颜色。按钮的背景颜色是透明的。

注意:
此 API 已废弃。已从对话框中移除“取消”按钮。
- (UIColor*) acceptButtonTextColor [read, assign]

“接受”按钮的文字颜色。

按钮的背景颜色是透明的。