Tealium class
Constructors
- Tealium()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- emitter ↔ EventEmitter
-
getter/setter pair
Static Methods
-
addCustomRemoteCommand(
String id, Function callback) → dynamic -
Adds a RemoteCommand to the
RemoteCommands
Dispatcher -
addRemoteCommand(
RemoteCommand remoteCommand) → dynamic -
Adds a RemoteCommand to the
RemoteCommands
Dispatcher -
addToDataLayer(
Map< String, Object> data, Expiry expiry) → dynamic - Adds a key value pair to the data layer with a specified Expiry
-
clearStoredVisitorIds(
) → dynamic - Clears all stored visitor ids.
-
gatherTrackData(
) → Future< Map> - Retrieves the tracking data from collectors and DataLayer
-
getConsentCategories(
) → Future< List> - Retrieves the current ConsentCategories for which the user is consented
-
getConsentStatus(
) → Future< String> - Retrieves the current user ConsentStatus
-
getFromDataLayer(
String key) → Future - Retrieves a value from the data layer for a specified key
-
getVisitorId(
) → Future< String> - Retrieves the visitor id for the user
-
initialize(
TealiumConfig config) → Future< bool> - Initializes Tealium with a TealiumConfig object
-
joinTrace(
String id) → dynamic - Joins a trace session for a given id
-
leaveTrace(
) → dynamic - Leaves the current trace session
-
removeFromDataLayer(
List< String> keys) → dynamic - Removes a List of keys from the data layer
-
removeRemoteCommand(
String id) → dynamic -
Removes a RemoteCommand from the
RemoteCommands
Dispatcher -
resetVisitorId(
) → dynamic - Resets the visitor id for the user
-
setConsentCategories(
List< ConsentCategories> categories) → dynamic - Sets a List of ConsentCategories for the user
-
setConsentExpiryListener(
Function callback) → dynamic - Sets the callback for when the user ConsentExpiry has expired
-
setConsentStatus(
ConsentStatus status) → dynamic -
setVisitorIdListener(
Function callback) → dynamic - Sets the callback for the Visitor Id update
-
setVisitorServiceListener(
Function callback) → dynamic -
Sets the callback for the
VisitorService
update -
terminateInstance(
) → dynamic - Disables the Tealium instance and all tracking
-
track(
TealiumDispatch dispatch) → dynamic - Tracks a TealiumDispatch
Constants
- plugin_name → const String
- plugin_version → const String