GoogleNavigation Framework Reference

  • GMSNavigationTermsAndConditionsOptions provides options for customizing the display of terms and conditions within the Google Navigation SDK.

  • It requires the company name associated with the app using the SDK during initialization.

  • Options include customising the dialog's title, showing only the driver awareness disclaimer, and adjusting the dialog's UI elements using GMSNavigationTermsDialogUIParams.

  • By default, the dialog displays both the driver awareness disclaimer and the standard Navigation SDK terms and services.

  • The default title and localization for the terms and conditions are handled automatically unless a custom title is provided.

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;
  • Unavailable

    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.

    Declaration

    Swift

    var uiParams: GMSNavigationTermsDialogUIParams? { get set }

    Objective-C

    @property (nonatomic, strong, nullable) GMSNavigationTermsDialogUIParams *uiParams;