-
public class JavaCMPManager
-
-
Method Summary
-
-
Method Detail
-
setWebView
void setWebView(WebView webView)
-
getInstance
static JavaCMPManager getInstance(Context context, UrlConfig urlConfig, ConsentLayerUIConfig webViewConfig, CMPManagerDelegate delegate)
-
setActivity
void setActivity(Activity activity)
-
hasUserChoice
boolean hasUserChoice()
-
hasPurposeConsent
boolean hasPurposeConsent(String id)
-
hasVendorConsent
boolean hasVendorConsent(String id)
-
exportCMPInfo
String exportCMPInfo()
-
getAllPurposesIDs
List<String> getAllPurposesIDs()
-
getEnabledPurposesIDs
List<String> getEnabledPurposesIDs()
-
getDisabledPurposesIDs
List<String> getDisabledPurposesIDs()
-
getAllVendorsIDs
List<String> getAllVendorsIDs()
-
getEnabledVendorsIDs
List<String> getEnabledVendorsIDs()
-
getDisabledVendorsIDs
List<String> getDisabledVendorsIDs()
-
resetConsentManagementData
void resetConsentManagementData()
-
checkWithServerAndOpenIfNecessary
void checkWithServerAndOpenIfNecessary(Function<JavaFriendlyResult<Unit>, Void> completion)
-
openConsentLayer
void openConsentLayer(Function<JavaFriendlyResult<Unit>, Void> completion)
-
checkIfConsentIsRequired
void checkIfConsentIsRequired(Consumer<Boolean> completion)
-
acceptVendors
void acceptVendors(List<String> vendors, Function<JavaFriendlyResult<Unit>, Void> completion)
-
rejectVendors
void rejectVendors(List<String> vendors, Function<JavaFriendlyResult<Unit>, Void> completion)
-
acceptPurposes
void acceptPurposes(List<String> purposes, boolean updatePurpose, Function<JavaFriendlyResult<Unit>, Void> completion)
-
rejectPurposes
void rejectPurposes(List<String> purposes, boolean updateVendor, Function<JavaFriendlyResult<Unit>, Void> completion)
-
rejectAll
void rejectAll(Function<JavaFriendlyResult<Unit>, Void> completion)
-
acceptAll
void acceptAll(Function<JavaFriendlyResult<Unit>, Void> completion)
-
onApplicationPause
void onApplicationPause()
-
onApplicationResume
void onApplicationResume()
-
onActivityDestroyed
void onActivityDestroyed()
-
-
-
-