SourcepointCmp class
Constructors
- SourcepointCmp({required int accountId, required int propertyId, required String propertyName, required String pmId, void onConsentUIReady()?, void onConsentUIFinished()?, void onConsentReady({GDPRUserConsent consent})?, void onError(String? errorMessage)?, void onAction(ActionType? actionType)?})
Properties
- accountId → int
-
Account ID from your Sourcepoint Account
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onAction → (void Function(ActionType? actionType)?)
-
final
- onConsentReady → (void Function({GDPRUserConsent consent})?)
-
called after an action is taken by the user and the consent info is returned by SourcePoint's endpoints
final
- onConsentUIFinished → (void Function()?)
-
called when the Dialog message is about to disappear
final
- onConsentUIReady → (void Function()?)
-
called when the Dialog message is about to be shown
final
- onError → (void Function(String? errorMessage)?)
-
called on Sourcepoint errors
final
- pmId → String
-
Privacy Manager id
final
- propertyId → int
-
Id of your Property
final
- propertyName → String
-
Name of your Property
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
load(
) → Future< void> - Load CMP Message, only for new Users
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showPM(
) → Future< void> - Show Privacy Manger
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited