AI-generated Key Takeaways
-
GMSNavigationTermsDialogUIParams
customizes the appearance of the navigation terms dialog, such as background color, fonts, and text colors for different elements. -
It provides properties to control the visual style of the title, main text, and buttons within the dialog.
-
Developers can use this class to create a visually consistent and customized user experience for the navigation terms dialog.
-
While previously containing a cancel button, it has been removed, and the
cancelButtonTextColor
property is deprecated. -
Initialization is done through a designated initializer, taking parameters for all customizable UI elements.
GMSNavigationTermsDialogUIParams
@interface GMSNavigationTermsDialogUIParams : NSObject
Parameters that describe the look and feel of the dialog.
-
Color used for the background of the dialog box.
Declaration
Swift
var backgroundColor: UIColor? { get }
Objective-C
@property (nonatomic, readonly, nullable) UIColor *backgroundColor;
-
Font used for text of the title.
Declaration
Swift
var titleFont: UIFont? { get }
Objective-C
@property (nonatomic, readonly, nullable) UIFont *titleFont;
-
Color of text in the title.
Declaration
Swift
var titleColor: UIColor? { get }
Objective-C
@property (nonatomic, readonly, nullable) UIColor *titleColor;
-
Font used for text of the Terms and Driver’s Awareness Disclaimer.
Declaration
Swift
var mainTextFont: UIFont? { get }
Objective-C
@property (nonatomic, readonly, nullable) UIFont *mainTextFont;
-
Color of the text used for the Terms and Driver’s Awareness Disclaimer.
Declaration
Swift
var mainTextColor: UIColor? { get }
Objective-C
@property (nonatomic, readonly, nullable) UIColor *mainTextColor;
-
Font used for text on the Cancel and Accept buttons.
Declaration
Swift
var buttonsFont: UIFont? { get }
Objective-C
@property (nonatomic, readonly, nullable) UIFont *buttonsFont;
-
Deprecated
Cancel button has been removed from the dialog.
Deprecated. Cancel button has been removed from the dialog.
Color of the text of the Cancel button. The background color of the button is transparent.
Declaration
Swift
var cancelButtonTextColor: UIColor? { get }
Objective-C
@property (nonatomic, readonly, nullable) UIColor *cancelButtonTextColor;
-
Color of the text of the Accept button. The background color of the button is transparent.
Declaration
Swift
var acceptButtonTextColor: UIColor? { get }
Objective-C
@property (nonatomic, readonly, nullable) UIColor *acceptButtonTextColor;
-
-initWithBackgroundColor:titleFont:titleColor:mainTextFont:mainTextColor:buttonsFont:cancelButtonTextColor:acceptButtonTextColor:
Constructs a
GMSNavigationTermsDialogUIParams
object.See property comments for the meaning of the parameters.
Declaration
Swift
init(backgroundColor: UIColor?, titleFont: UIFont?, titleColor: UIColor?, mainTextFont: UIFont?, mainTextColor: UIColor?, buttonsFont: UIFont?, cancelButtonTextColor: UIColor?, acceptButtonTextColor: UIColor?)
Objective-C
- (nonnull instancetype) initWithBackgroundColor:(nullable UIColor *)backgroundColor titleFont:(nullable UIFont *)titleFont titleColor:(nullable UIColor *)titleColor mainTextFont:(nullable UIFont *)mainTextFont mainTextColor:(nullable UIColor *)mainTextColor buttonsFont:(nullable UIFont *)buttonsFont cancelButtonTextColor:(nullable UIColor *)cancelButtonTextColor acceptButtonTextColor:(nullable UIColor *)acceptButtonTextColor;
-
Unavailable
Use designated initializer instead.
Declaration
Objective-C
- (null_unspecified instancetype)init;