-
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)
-
getUserStatus
UserConsentStatus getUserStatus()
Gets the complete user consent status including all vendors and purposes.This replaces multiple deprecated methods including hasUserChoice(), getAllPurposesIDs(), etc.
-
getStatusForPurpose
ConsentStatus getStatusForPurpose(String id)
Gets the consent status for a specific purpose.Replaces hasPurposeConsent(String id)
-
getStatusForVendor
ConsentStatus getStatusForVendor(String id)
Gets the consent status for a specific vendor.Replaces hasVendorConsent(String id)
-
hasUserChoice
@Deprecated() boolean hasUserChoice()
-
hasPurposeConsent
@Deprecated() boolean hasPurposeConsent(String id)
-
hasVendorConsent
@Deprecated() boolean hasVendorConsent(String id)
-
exportCMPInfo
@Deprecated() String exportCMPInfo()
-
getAllPurposesIDs
@Deprecated() List<String> getAllPurposesIDs()
-
getEnabledPurposesIDs
@Deprecated() List<String> getEnabledPurposesIDs()
-
getDisabledPurposesIDs
@Deprecated() List<String> getDisabledPurposesIDs()
-
getAllVendorsIDs
@Deprecated() List<String> getAllVendorsIDs()
-
getEnabledVendorsIDs
@Deprecated() List<String> getEnabledVendorsIDs()
-
getDisabledVendorsIDs
@Deprecated() List<String> getDisabledVendorsIDs()
-
resetConsentManagementData
void resetConsentManagementData()
-
getGoogleConsentModeSettings
Map<String, String> getGoogleConsentModeSettings()
Returns a Map of consent settings compatible with Google Consent Mode v2.This map can be directly passed to Firebase Analytics' setConsent method.
-
checkAndOpen
void checkAndOpen(boolean jumpToSettings, Function<JavaFriendlyResult<Unit>, Void> completion)
-
checkWithServerAndOpenIfNecessary
@Deprecated() void checkWithServerAndOpenIfNecessary(Function<JavaFriendlyResult<Unit>, Void> completion)
-
openConsentLayer
@Deprecated() void openConsentLayer(Function<JavaFriendlyResult<Unit>, Void> completion)
-
forceOpen
void forceOpen(boolean jumpToSettings, Function<JavaFriendlyResult<Unit>, Void> completion)
-
importCMPInfo
void importCMPInfo(String cmpString, Function<JavaFriendlyResult<Unit>, Void> completion)
-
checkIfConsentIsRequired
@Deprecated() 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()
-
setOnClickLinkCallback
void setOnClickLinkCallback(OnClickLinkCallback callback)
-
getOnClickLinkCallback
OnClickLinkCallback getOnClickLinkCallback()
-
-
-
-