GoogleNavigation Framework Reference

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;