CNIL Continue Without Accepting
Display Continue Without Accepting as Button
With OneTrust 6.22.0, mobile app customers can now customize the CNIL option as a button to promote a consistent experience when presented with a close option. For more information on the app-side configuration of mobile templates to display as text or link, please CNIL Mobile App Requirements on myOneTrust.
UIConfigurator
- Return True
UIConfigurator
- Return True- Open the
AppDelegate.swift
file. - Locate the
shouldUseCustomUIConfig() -> Bool
function. - Update the value as
return true
. It will be set toreturn false
by default.
extension AppDelegate: UIConfigurator {
func shouldUseCustomUIConfig() -> Bool {
return true
}
Customize closeButton
closeButton
- Open the
OTSDK-UIConfig-iOS.plist
file. - Locate
Root > bannerTheme > buttons > closeButton
. - The parameters for
closeButton
will be blank by default. Provide your customizations for the Continue Without Accepting button.
Key Name | Type |
---|---|
backgroundColor | String |
fontName | String |
fontSize | Number |
fontTextStyle | String |
textColor | String |
borderColor | String |
borderWidth | Number |
borderRadius | Number |
Validating the Build
- Once you've set the method as true and provided customizations for the closeButton, run the sample app build.
- The Continue Without Accepting option should appear as a button with your customizations.
Updated 9 months ago