◆ createChannelAttributes()
◆ addAttribute()
virtual int agora::rtm::IChannelAttributes::addAttribute |
( |
const char * |
key, |
|
|
const char * |
value |
|
) |
| |
|
pure virtual |
Adds an attribute to a specified channel.
- Parameters
-
key | The pointer to the attribute key. |
value | The pointer to the attribute value. |
- Returns
- 0: Success.
- < 0: Failure.
◆ removeAttribute()
virtual int agora::rtm::IChannelAttributes::removeAttribute |
( |
const char * |
key | ) |
|
|
pure virtual |
Removes an attribute from the channel.
- Parameters
-
key | The pointer to the attribute key. |
- Returns
- 0: Success.
- < 0: Failure.
◆ getAttributesSize()
virtual int agora::rtm::IChannelAttributes::getAttributesSize |
( |
| ) |
const |
|
pure virtual |
Gets the size of the attributes.
- Returns
- 0: Success.
- < 0: Failure.
◆ getAttributes()
virtual void agora::rtm::IChannelAttributes::getAttributes |
( |
int |
size, |
|
|
char ** |
key, |
|
|
char ** |
value |
|
) |
| const |
|
pure virtual |
Gets the channel attributes.
- Parameters
-
size | The size of the channel attributes. |
key | The pointer to the key of each channel attribute. |
value | The pointer to the value of each channel attribute. |
◆ getAttributeValue()
virtual const char* agora::rtm::IChannelAttributes::getAttributeValue |
( |
const char * |
key | ) |
const |
|
pure virtual |
Gets the value of a channel attribute using the attribute key.
- Parameters
-
key | The pointer to the key of the channel attribute that you want to get. |
◆ release()
virtual int agora::rtm::IChannelAttributes::release |
( |
| ) |
|
|
pure virtual |