AttributesEditor
Wraps the Identity.Builder attribute map functions to provide an idiomatic Kotlin syntax.
For example
SFMCSdk.requestSdk { sdk ->
sdk.identity.edit {
attributes["key"] = "value" // assignment syntax
attributes += "key2" to "value2" // plus assignment syntax
}
}Content copied to clipboard
Functions
Link copied to clipboard
Updates or adds the value of an entry for the given key in the attribute map.
Link copied to clipboard
First clears the values of all existing attributes values. Then updates or adds the values from the passed in map. Note: attribute keys cannot be removed, only the value can be cleared or set to null.
Updates or adds the value of an entry for the given key in the attribute map.