App Consent SDK
CMP entry point. This allows you to initiate the CMP when you need it, and to check that it has been properly initialized and started.
Once this has been done, all you need to do is retrieve the com.sfbx.appconsent.AppConsent object from the onReady Callback into AppConsentSDK.initialize method and display the CMP to your users.
Functions
Finds out whether all consent items have been accepted by the user
Finds out whether all stack items have been accepted by the user
Finds out whether all vendor items have been accepted by the user
Clear all applications SharedPreferences
Clear user consent stored locally in applications SharedPreferences
Checks whether a consent has been authorized
Check if user gave consent
Checks whether an extra consent has been authorized
Shows whether or not floating purpose has been authorized for a given extraId.
Checks whether a Extra Vendor has been authorized
Check if user gave consent for Geolocation purpose
Returns a list of consentables
Return a list of all Extra Vendors
Retrieves the list of your external id's, previously stored
Retrieves the CMP if it has been initialized
The main method, which allows you to initialize AppConsent with a default configuration or a custom configuration ACConfiguration like theme AppConsentTVTheme or force the application of GRPD whatever the region for example. By default, you will only need the appKey provided by the SFBX platform AND the callback onReady.
Find out if your Floating Purpose needs updating or not
Finds out whether or not the user has explicitly limited his or her advertising tracking
Find out whether the CMP has already been initialized, and if so, enable you to retrieve it and start/continue using it.
Return true if user is subject to GDPR. It depends on forceApplyGDPR into com.sfbx.appconsent.tv.model.ACConfiguration and phone's locale.
Send the external ids you have stored to the server. setExternalIds
Defines the new status of consentables passed in parameter.
Set error log listener to help you to trace some error during using AppConsent. If you pass null
you will remove the error log listener.
Store a set of external id's to allow you to send them to the server later with the saveExternalIds method.
Defines the new status of extra consentables passed in parameter.
Set information log listener to help you to trace some information logs during using AppConsent. If you pass null
you will remove the error log listener.
Set navigation log listener to help you to trace some navigation logs during using AppConsent. If you pass null
you will remove the error log listener.
Set a listener to be notified when user has given his consent
Checks whether a stack has been authorized
Try to display the CMP; display is controlled by functional rules
Finds out whether all consent, stack, vendor items have been accepted by the user
Checks whether a IAB Vendor has been authorized