A class for setting and getting the RtmAttribute.
◆ RtmAttribute()
io.agora.rtm.RtmAttribute.RtmAttribute |
( |
String |
key, |
|
|
String |
value |
|
) |
| |
The construction method of RtmAttribute.
- Parameters
-
key | The attribute name. Must be visible characters and not exceed 32 Bytes in length. |
value | The attribute value. Must not exceed 8 KB in length. |
◆ getKey()
String io.agora.rtm.RtmAttribute.getKey |
( |
| ) |
|
Gets the attribute name.
- Returns
- The attribute name that is set using the setKey method.
◆ getValue()
String io.agora.rtm.RtmAttribute.getValue |
( |
| ) |
|
Gets the attribute value.
- Returns
- The attribute value that is set using the setValue method.
◆ setKey()
void io.agora.rtm.RtmAttribute.setKey |
( |
String |
key | ) |
|
Sets the attribute name.
- Parameters
-
key | The attribute name. Must be visible characters and not exceed 32 Bytes in length. |
◆ setValue()
void io.agora.rtm.RtmAttribute.setValue |
( |
String |
value | ) |
|
Sets the attribute value.
- Parameters
-
value | The attribute value. Must not exceed 8 KB in length. |