GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSNavigationTermsAndConditionsOptions
@interface GMSNavigationTermsAndConditionsOptions : NSObject <NSCopying>
Options for displaying terms and conditions.
-
Declaration
Swift
init(companyName: String)
Objective-C
- (instancetype)initWithCompanyName:(NSString *)companyName NS_DESIGNATED_INITIALIZER;
-
Default init is not available. Please use the designated initializer.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Name of the company releasing the app and in the agreement with Google to
share location data.
Declaration
Swift
var companyName: String { get set }
Objective-C
@property (nonatomic, copy) NSString *_Nonnull companyName;
-
Title of the dialog box. If title
is nil, the dialog uses the default title.
Note: For custom titles, the caller of this method needs to localize this parameter
The default title is localized by the services automatically.
Declaration
Swift
var title: String? { get set }
Objective-C
@property (nonatomic, copy, nullable) NSString *title;
-
Indicates if -showTermsAndConditionsDialogIfNeededWithOptions:callback:
should
display the driver awareness disclaimer only. The default is NO
and the disclaimer is
shown in addition to the default terms and services provided with the Navigation SDK.
Set to YES
to indicate that only the driver awareness disclaimer should be shown.
If the project must show the Terms and Conditions dialog, setting this variable to YES
has no
effect.
Declaration
Swift
var shouldOnlyShowDriverAwarenessDialog: Bool { get set }
Objective-C
@property (nonatomic) BOOL shouldOnlyShowDriverAwarenessDialog;
-
Parameters defining the look and feel of the dialog box. If nil, the dialog box
uses the default look and feel.
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\u003eGMSNavigationTermsAndConditionsOptions\u003c/code\u003e provides options for customizing the display of terms and conditions within the Google Navigation SDK.\u003c/p\u003e\n"],["\u003cp\u003eIt requires the company name associated with the app using the SDK during initialization.\u003c/p\u003e\n"],["\u003cp\u003eOptions include customising the dialog's title, showing only the driver awareness disclaimer, and adjusting the dialog's UI elements using \u003ccode\u003eGMSNavigationTermsDialogUIParams\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eBy default, the dialog displays both the driver awareness disclaimer and the standard Navigation SDK terms and services.\u003c/p\u003e\n"],["\u003cp\u003eThe default title and localization for the terms and conditions are handled automatically unless a custom title is provided.\u003c/p\u003e\n"]]],[],null,["# GoogleNavigation Framework Reference\n\nGMSNavigationTermsAndConditionsOptions\n======================================\n\n @interface GMSNavigationTermsAndConditionsOptions : NSObject \u003cNSCopying\u003e\n\nOptions for displaying terms and conditions.\n- `\n ``\n ``\n `\n\n ### [-initWithCompanyName:](#/c:objc(cs)GMSNavigationTermsAndConditionsOptions(im)initWithCompanyName:)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n init(companyName: String)\n\n Objective-C \n\n - (instancetype)initWithCompanyName:(NSString *)companyName NS_DESIGNATED_INITIALIZER;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMSNavigationTermsAndConditionsOptions(im)init)\n\n `\n ` \n Unavailable \n Default init is not available. Please use the designated initializer. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)init;\n\n- `\n ``\n ``\n `\n\n ### [companyName](#/c:objc(cs)GMSNavigationTermsAndConditionsOptions(py)companyName)\n\n `\n ` \n Name of the company releasing the app and in the agreement with Google to\n share location data. \n\n #### Declaration\n\n Swift \n\n var companyName: String { get set }\n\n Objective-C \n\n @property (nonatomic, copy) NSString *_Nonnull companyName;\n\n- `\n ``\n ``\n `\n\n ### [title](#/c:objc(cs)GMSNavigationTermsAndConditionsOptions(py)title)\n\n `\n ` \n Title of the dialog box. If `title` is nil, the dialog uses the default title.\n Note: For custom titles, the caller of this method needs to localize this parameter\n The default title is localized by the services automatically. \n\n #### Declaration\n\n Swift \n\n var title: String? { get set }\n\n Objective-C \n\n @property (nonatomic, copy, nullable) NSString *title;\n\n- `\n ``\n ``\n `\n\n ### [shouldOnlyShowDriverAwarenessDialog](#/c:objc(cs)GMSNavigationTermsAndConditionsOptions(py)shouldOnlyShowDriverAwarenessDialog)\n\n `\n ` \n Indicates if `-showTermsAndConditionsDialogIfNeededWithOptions:callback:` should\n display the driver awareness disclaimer only. The default is `NO` and the disclaimer is\n shown in addition to the default terms and services provided with the Navigation SDK.\n Set to `YES` to indicate that only the driver awareness disclaimer should be shown.\n\n If the project must show the Terms and Conditions dialog, setting this variable to `YES` has no\n effect. \n\n #### Declaration\n\n Swift \n\n var shouldOnlyShowDriverAwarenessDialog: Bool { get set }\n\n Objective-C \n\n @property (nonatomic) BOOL shouldOnlyShowDriverAwarenessDialog;\n\n- `\n ``\n ``\n `\n\n ### [uiParams](#/c:objc(cs)GMSNavigationTermsAndConditionsOptions(py)uiParams)\n\n `\n ` \n Parameters defining the look and feel of the dialog box. If nil, the dialog box\n uses the default look and feel. \n\n #### Declaration\n\n Swift \n\n var uiParams: ../Classes/GMSNavigationTermsDialogUIParams.html? { get set }\n\n Objective-C \n\n @property (nonatomic, strong, nullable) ../Classes/GMSNavigationTermsDialogUIParams.html *uiParams;"]]