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.appconsentv3.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
WARNING! Please do not use this method unless our CMP logs webview error during your development phase.
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 AppConsentTheme or force the application of GRPD whatever the region for example or display CMP in full screen. 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.
Shows whether the CMP is being initialized
WARNING! Please do not use this method unless our CMP logs webview error during your development phase.
Return true if user is subject to GDPR. It depends on forceApplyGDPR into com.sfbx.appconsentv3.ui.model.ACConfiguration and phone's locale.
WARNING! Please do not use this method unless our CMP stipulates it in error logs during your development phase.
Send the external ids you have stored to the server. setExternalIds
Defines the new status of consentables passed in parameter.
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 a listener to be notified when user has given his geolocation consent
Set a listener to be notified when user has given his consent
Checks whether a stack has been authorized
Try to display the Geolocation CMP; display is controlled by functional rules
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