GMSNavigationTermsDialogUIParams 类参考

GMSNavigationTermsDialogUIParams 类参考

概览

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

公开成员函数

(实例类型)- 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]

“取消”按钮的文字颜色。

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

- (UIColor*) acceptButtonTextColor [read, assign]

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

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