Stay organized with collections
Save and categorize content based on your preferences.
You can use the GMSNavigationTermsDialogUIParams object to customize the look
and feel of the Terms and Conditions dialog box by changing the background
color, the fonts, and the text colors.
Example
The following code example demonstrates how to customize the look and feel of
the Terms and Conditions dialog box.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGMSNavigationTermsDialogUIParams\u003c/code\u003e object allows customization of the Terms and Conditions dialog's appearance, including background color, fonts, and text colors.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can modify elements like title font, main text font, button font, and respective colors using this object.\u003c/p\u003e\n"],["\u003cp\u003eThe provided code examples demonstrate how to implement these customizations in both Swift and Objective-C.\u003c/p\u003e\n"]]],["The `GMSNavigationTermsDialogUIParams` object customizes the Terms and Conditions dialog's appearance. You can modify the background color, fonts, and text colors. Create a `GMSNavigationTermsDialogUIParams` instance, setting desired properties like `backgroundColor`, `titleFont`, and button text colors. Then, create `GMSNavigationTermsAndConditionsOptions`, set `uiParams`, company name and the title. Finally, use `GMSNavigationServices.showTermsAndConditionsDialogIfNeeded` to display the dialog and handle user acceptance.\n"],null,["You can use the `GMSNavigationTermsDialogUIParams` object to customize the look\nand feel of the Terms and Conditions dialog box by changing the background\ncolor, the fonts, and the text colors.\n\nExample\n\nThe following code example demonstrates how to customize the look and feel of\nthe Terms and Conditions dialog box.\n\n\u003cbr /\u003e\n\nSwift\n\n\u003cbr /\u003e\n\n let termsUIParams = GMSNavigationTermsDialogUIParams(\n backgroundColor: .brown,\n titleFont: UIFont(name:\"ChalkboardSE-Bold\", size:18),\n titleColor: .orange,\n mainTextFont: UIFont(name:\"MarkerFelt-Wide\", size:18),\n mainTextColor: .yellow,\n buttonsFont: UIFont(name:\"Arial-BoldItalicMT\", size:14),\n cancelButtonTextColor: .green,\n acceptButtonTextColor: .blue)\n\n let termsAndConditionsOptions = GMSNavigationTermsAndConditionsOptions(companyName: \"Ride Sharing Co.\")\n termsAndConditionsOptions.title = \"Some Title\"\n termsAndConditionsOptions.uiParams = termsUIParams\n\n GMSNavigationServices.showTermsAndConditionsDialogIfNeeded(\n with: termsAndConditionsOptions) { termsAccepted in\n if termsAccepted {\n // ...\n } else {\n // ...\n }\n }\n\n\u003cbr /\u003e\n\nObjective-C\n\n\u003cbr /\u003e\n\n GMSNavigationTermsDialogUIParams *termsUIParams =\n [[GMSNavigationTermsDialogUIParams alloc] initWithBackgroundColor:[UIColor brownColor]\n titleFont:[UIFont fontWithName:@\"ChalkboardSE-Bold\" size:18]\n titleColor:[UIColor orangeColor]\n mainTextFont:[UIFont fontWithName:@\"MarkerFelt-Wide\" size:18]\n mainTextColor:[UIColor yellowColor]\n buttonsFont:[UIFont fontWithName:@\"Arial-BoldItalicMT\" size:14]\n cancelButtonTextColor:[UIColor greenColor]\n acceptButtonTextColor:[UIColor blueColor]];\n\n GMSNavigationTermsAndConditionsOptions *termsAndConditionsOptions = [[GMSNavigationTermsAndConditionsOptions alloc] initWithCompanyName:@\"Ride Sharing Co.\"];\n termsAndConditionsOptions.title = @\"Some Title\";\n termsAndConditionsOptions.uiParams = termsUIParams;\n\n [GMSNavigationServices\n showTermsAndConditionsDialogIfNeededWithOptions:termsAndConditionsOptions\n callback:^(BOOL termsAccepted) {\n if (termsAccepted) {\n // ...\n } else {\n // ...\n }\n }];\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]