putAttribute method

void putAttribute(
  1. String name,
  2. String value
)

Sets a String value for the specified attribute with name.

Updates the value of the attribute if the attribute already exists. The maximum number of attributes that can be added are maxCustomAttributes. An attempt to add more than maxCustomAttributes to this object will return without adding the attribute.

Name of the attribute has max length of maxAttributeKeyLength characters. Value of the attribute has max length of maxAttributeValueLength characters. If the name has a length greater than maxAttributeKeyLength or the value has a length greater than maxAttributeValueLength, this method will return without adding anything.

If this object has been stopped, this method returns without adding the attribute.

Implementation

void putAttribute(String name, String value) {
  return _delegate.putAttribute(name, value);
}