GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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;
-
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;
-
Use designated initializer instead.
Declaration
Objective-C
- (null_unspecified instancetype)init;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSNavigationTermsDialogUIParams\u003c/code\u003e customizes the appearance of the navigation terms dialog, such as background color, fonts, and text colors for different elements.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties to control the visual style of the title, main text, and buttons within the dialog.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this class to create a visually consistent and customized user experience for the navigation terms dialog.\u003c/p\u003e\n"],["\u003cp\u003eWhile previously containing a cancel button, it has been removed, and the \u003ccode\u003ecancelButtonTextColor\u003c/code\u003e property is deprecated.\u003c/p\u003e\n"],["\u003cp\u003eInitialization is done through a designated initializer, taking parameters for all customizable UI elements.\u003c/p\u003e\n"]]],["The `GMSNavigationTermsDialogUIParams` class defines parameters for customizing the appearance of a dialog. Key elements include setting the `backgroundColor`, `titleFont`, and `titleColor`. It allows specifying the `mainTextFont` and `mainTextColor` for the terms and disclaimer text. Button text styles are controlled via `buttonsFont` and the `acceptButtonTextColor`. The `cancelButtonTextColor` property is deprecated, as the cancel button has been removed. Objects are constructed with the `initWithBackgroundColor` method.\n"],null,["# GoogleNavigation Framework Reference\n\nGMSNavigationTermsDialogUIParams\n================================\n\n @interface GMSNavigationTermsDialogUIParams : NSObject\n\nParameters that describe the look and feel of the dialog.\n- `\n ``\n ``\n `\n\n ### [backgroundColor](#/c:objc(cs)GMSNavigationTermsDialogUIParams(py)backgroundColor)\n\n `\n ` \n Color used for the background of the dialog box. \n\n #### Declaration\n\n Swift \n\n var backgroundColor: UIColor? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) UIColor *backgroundColor;\n\n- `\n ``\n ``\n `\n\n ### [titleFont](#/c:objc(cs)GMSNavigationTermsDialogUIParams(py)titleFont)\n\n `\n ` \n Font used for text of the title. \n\n #### Declaration\n\n Swift \n\n var titleFont: UIFont? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) UIFont *titleFont;\n\n- `\n ``\n ``\n `\n\n ### [titleColor](#/c:objc(cs)GMSNavigationTermsDialogUIParams(py)titleColor)\n\n `\n ` \n Color of text in the title. \n\n #### Declaration\n\n Swift \n\n var titleColor: UIColor? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) UIColor *titleColor;\n\n- `\n ``\n ``\n `\n\n ### [mainTextFont](#/c:objc(cs)GMSNavigationTermsDialogUIParams(py)mainTextFont)\n\n `\n ` \n Font used for text of the Terms and Driver's Awareness Disclaimer. \n\n #### Declaration\n\n Swift \n\n var mainTextFont: UIFont? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) UIFont *mainTextFont;\n\n- `\n ``\n ``\n `\n\n ### [mainTextColor](#/c:objc(cs)GMSNavigationTermsDialogUIParams(py)mainTextColor)\n\n `\n ` \n Color of the text used for the Terms and Driver's Awareness Disclaimer. \n\n #### Declaration\n\n Swift \n\n var mainTextColor: UIColor? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) UIColor *mainTextColor;\n\n- `\n ``\n ``\n `\n\n ### [buttonsFont](#/c:objc(cs)GMSNavigationTermsDialogUIParams(py)buttonsFont)\n\n `\n ` \n Font used for text on the Cancel and Accept buttons. \n\n #### Declaration\n\n Swift \n\n var buttonsFont: UIFont? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) UIFont *buttonsFont;\n\n- `\n ``\n ``\n `\n\n ### [cancelButtonTextColor](#/c:objc(cs)GMSNavigationTermsDialogUIParams(py)cancelButtonTextColor)\n\n `\n ` \n Deprecated\n\n Cancel button has been removed from the dialog. \n Deprecated. Cancel button has been removed from the dialog.\n\n Color of the text of the Cancel button. The background color of the button is transparent. \n\n #### Declaration\n\n Swift \n\n var cancelButtonTextColor: UIColor? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) UIColor *cancelButtonTextColor;\n\n- `\n ``\n ``\n `\n\n ### [acceptButtonTextColor](#/c:objc(cs)GMSNavigationTermsDialogUIParams(py)acceptButtonTextColor)\n\n `\n ` \n Color of the text of the Accept button. The background color of the button is transparent. \n\n #### Declaration\n\n Swift \n\n var acceptButtonTextColor: UIColor? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) UIColor *acceptButtonTextColor;\n\n- `\n ``\n ``\n `\n\n ### [-initWithBackgroundColor:titleFont:titleColor:mainTextFont:mainTextColor:buttonsFont:cancelButtonTextColor:acceptButtonTextColor:](#/c:objc(cs)GMSNavigationTermsDialogUIParams(im)initWithBackgroundColor:titleFont:titleColor:mainTextFont:mainTextColor:buttonsFont:cancelButtonTextColor:acceptButtonTextColor:)\n\n `\n ` \n Constructs a `GMSNavigationTermsDialogUIParams` object.\n\n See property comments for the meaning of the parameters. \n\n #### Declaration\n\n Swift \n\n init(backgroundColor: UIColor?, titleFont: UIFont?, titleColor: UIColor?, mainTextFont: UIFont?, mainTextColor: UIColor?, buttonsFont: UIFont?, cancelButtonTextColor: UIColor?, acceptButtonTextColor: UIColor?)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithBackgroundColor:(nullable UIColor *)backgroundColor\n titleFont:(nullable UIFont *)titleFont\n titleColor:(nullable UIColor *)titleColor\n mainTextFont:(nullable UIFont *)mainTextFont\n mainTextColor:(nullable UIColor *)mainTextColor\n buttonsFont:(nullable UIFont *)buttonsFont\n cancelButtonTextColor:(nullable UIColor *)cancelButtonTextColor\n acceptButtonTextColor:(nullable UIColor *)acceptButtonTextColor;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMSNavigationTermsDialogUIParams(im)init)\n\n `\n ` \n Unavailable \n Use designated initializer instead. \n\n #### Declaration\n\n Objective-C \n\n - (null_unspecified instancetype)init;"]]