AI-generated Key Takeaways
-
The
TermsAndConditionsUIParamsobject allows customization of the Terms and Conditions dialog's appearance, including background color, fonts, and text colors. -
Developers can modify elements like title, main text, and button styles using the provided builder methods and parameters within the
TermsAndConditionsUIParamsobject. -
The example code showcases how to create and apply a customized
TermsAndConditionsUIParamsobject to the Terms and Conditions dialog using theNavigationApi.showTermsAndConditionsDialogmethod.
You can use the TermsAndConditionsUIParams 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.
TermsAndConditionsUIParams uiParams = TermsAndConditionsUIParams.builder()
.setBackgroundColor(Color.WHITE)
.setTitleColor(Color.BLACK)
.setTitleTypeface(Typeface.DEFAULT)
.setTitleTextSize(20)
.setMainTextColor(Color.BLACK)
.setMainTextTypeface(Typeface.DEFAULT)
.setMainTextTextSize(20)
.setButtonsTypeface(Typeface.DEFAULT)
.setButtonsTextSize(20)
.setAcceptButtonTextColor(Color.BLACK)
.setCancelButtonTextColor(Color.BLACK)
.build();
NavigationApi.showTermsAndConditionsDialog(
getActivity(),
"Your Company Name",
"Your title",
uiParams,
null,
TermsAndConditionsCheckOption.ENABLED);