BatchUserDataEditor class abstract
Batch's user data editor. This object is used to transactionally edit user data. Calls can be chained in a builder-like fashion. Once you're done with your changes, call BatchUserDataEditor.save to persist your changes.
Constructors
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
-
addTag(
String collection, String tag) → BatchUserDataEditor - Add a tag to a collection.
-
clearAttributes(
) → BatchUserDataEditor - Delete all attributes.
-
clearTagCollection(
String collection) → BatchUserDataEditor - Removes all tags from a collection.
-
clearTags(
) → BatchUserDataEditor - Removes all tags.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAttribute(
String key) → BatchUserDataEditor - Delete an attribute using its key.
-
removeTag(
String collection, String tag) → BatchUserDataEditor - Delete a tag from a collection.
-
save(
) → void - Save all of the pending changes. This action cannot be undone.
-
setAttributionIdentifier(
String? attributionId) → BatchUserDataEditor - Set the user attribution identifier
-
setBooleanAttribute(
String key, bool value) → BatchUserDataEditor - Set a boolean attribute for a key.
-
setDateTimeAttribute(
String key, DateTime value) → BatchUserDataEditor - Set a Date attribute for a key.
-
setDoubleAttribute(
String key, double value) → BatchUserDataEditor - Set a double attribute for a key.
-
setEmail(
String? email) → BatchUserDataEditor - Set the user email address.
-
setEmailMarketingSubscriptionState(
BatchEmailSubscriptionState state) → BatchUserDataEditor - Set the user email marketing subscription state
-
setIdentifier(
String? identifier) → BatchUserDataEditor - Set the custom user identifier.
-
setIntegerAttribute(
String key, int value) → BatchUserDataEditor - Set an integer attribute for a key.
-
setLanguage(
String? language) → BatchUserDataEditor - Set the application language. Overrides Batch's automatically detected value.
-
setRegion(
String? region) → BatchUserDataEditor - Set the application region. Overrides Batch's automatically detected value.
-
setStringAttribute(
String key, String value) → BatchUserDataEditor - Set a string attribute for a key.
-
setUrlAttribute(
String key, Uri value) → BatchUserDataEditor - Set a URL attribute for a key.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited