MethodChannelCmpSdk class
An implementation of CmpSdkPlatform that communicates with native code through Flutter method channels for managing consent.
- Inheritance
-
- Object
- PlatformInterface
- CmpSdkPlatform
- MethodChannelCmpSdk
Constructors
Properties
- didCloseConsentLayer ↔ DidCloseConsentLayer?
-
getter/setter pair
- didReceiveConsent ↔ DidReceiveConsent?
-
getter/setter pair
- didReceiveError ↔ DidReceiveError?
-
getter/setter pair
- didShowConsentLayer ↔ DidShowConsentLayer?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acceptAll(
) → Future< void> -
Accepts all consents.
override
-
acceptPurposes(
List< String> purposes, {bool updateVendors = true}) → Future<void> -
override
-
acceptVendors(
List< String> vendors) → Future<void> -
override
-
addEventListeners(
{DidShowConsentLayer? didShowConsentLayer, DidCloseConsentLayer? didCloseConsentLayer, DidReceiveConsent? didReceiveConsent, DidReceiveError? didReceiveError}) → Future< void> -
Sets up callbacks for consent events.
override
-
checkAndOpen(
{bool jumpToSettings = false}) → Future< void> -
override
-
exportCMPInfo(
) → Future< String?> -
Exports the current CMP string.
override
-
forceOpen(
{bool jumpToSettings = false}) → Future< void> -
override
-
getGoogleConsentModeStatus(
) → Future< Map< String, String> > -
override
-
getStatusForPurpose(
String id) → Future< ConsentStatus> -
override
-
getStatusForVendor(
String id) → Future< ConsentStatus> -
override
-
getUserStatus(
) → Future< UserConsentStatus> -
override
-
importCMPInfo(
String cmpString) → Future< bool> -
Imports a CMP string.
override
-
initialize(
) → Future< void> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rejectAll(
) → Future< void> -
Rejects all consents.
override
-
rejectPurposes(
List< String> purposes, {bool updateVendors = true}) → Future<void> -
override
-
rejectVendors(
List< String> vendors) → Future<void> -
override
-
resetConsentManagementData(
) → Future< void> -
Resets the consent data.
override
-
setATTStatus(
int status) → Future< void> -
override
-
setAutomaticConsentUpdatesEnabled(
bool enabled) → Future< void> -
override
-
setOnClickLinkCallback(
OnClickLinkCallback? callback) → Future< void> -
override
-
setUrlConfig(
{required String id, required String domain, required String appName, required String language, bool noHash = false}) → Future< void> -
override
-
setWebViewConfig(
ConsentLayerUIConfig config) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited