setAttribute

abstract fun setAttribute(@NonNull @Size(min = 1, max = 128) key: String, @NonNull value: String): RegistrationManager.Editor

Sets a key/value pair as an attribute in the registration. This key must already exist in your Marketing Cloud Server configuration. There is no way to add an attribute from the SDK.

Return

RegistrationManager.Editor

Parameters

key

a non-null string between 1 and 128 characters in length.

value

a non-null string