MethodChannelCMPSdk class

An implementation of CMPSdkPlatform that communicates with native code through Flutter method channels for managing consent.

Inheritance

Constructors

MethodChannelCMPSdk()

Properties

didChangeATTStatus DidChangeATTStatus?
getter/setter pair
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, DidChangeATTStatus? didChangeATTStatus}) Future<void>
Sets up callbacks for consent events.
override
checkIfConsentIsRequired() Future<bool>
override
checkWithServerAndOpenIfNecessary() Future<void>
Opens the consent layer if consent is required and hasn't been given yet.
override
exportCMPInfo() Future<String?>
Exports the current CMP string.
override
getAllPurposesIDs() Future<List>
Retrieves a list of all purposes.
override
getAllVendorsIDs() Future<List>
Retrieves a list of all vendors.
override
getATTAuthorizationStatus() Future<ATTStatus>
override
getDisabledPurposesIDs() Future<List>
Retrieves a list of disabled purposes.
override
getDisabledVendorsIDs() Future<List>
Retrieves a list of disabled vendors.
override
getEnabledPurposesIDs() Future<List>
Retrieves a list of enabled purposes.
override
getEnabledVendorsIDs() Future<List>
Retrieves a list of enabled vendors.
override
hasPurposeConsent(String id, {bool defaultReturn = true}) Future<bool>
Checks if there is consent for the specified purpose ID.
override
hasUserChoice() Future<bool>
Checks if consent has been given.
override
hasVendorConsent(String id, {bool defaultReturn = true}) Future<bool>
Checks if there is consent for the specified vendor ID.
override
importCMPInfo(String cmpString) Future<bool>
Imports a CMP string.
override
initialize() Future<void>
override
jumpToSettings() Future<void>
Opens the consent layer.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openConsentLayer() Future<void>
Opens the consent layer.
override
rejectAll() Future<void>
Rejects all consents.
override
rejectPurposes(List<String> purposes, {bool updateVendors = true}) Future<void>
override
rejectVendors(List<String> vendors) Future<void>
override
requestATTPermission() Future<void>
request ATTPermission
override
resetConsentManagementData() Future<void>
Resets the consent data.
override
setUrlConfig({required String id, required String domain, required String appName, required String language}) 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