add

public void add(@NonNull() String name, @NonNull() String value)

Add a custom metadata field. If there is already a field with the same name, the previous value will be overwritten with this one.

Parameters

name

field name as an ASCII compatible string

value

field value as an ASCII compatible string

Throws

if the name or the value cannot be encoded as ASCII