AI-generated Key Takeaways
-
The
TermsAndConditionsUIParams
object 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
TermsAndConditionsUIParams
object. -
The example code showcases how to create and apply a customized
TermsAndConditionsUIParams
object to the Terms and Conditions dialog using theNavigationApi.showTermsAndConditionsDialog
method.
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);