Agora Java API Reference for Android
|
Public Member Functions | |
abstract int | release () |
abstract int | join (JoinChannelOptions options) |
abstract int | leave () |
abstract String | getChannelName () |
abstract int | joinTopic (String topicName, JoinTopicOptions options) |
abstract int | publishTopicMessage (String topicName, byte[] message) |
abstract int | leaveTopic (String topicName) |
abstract int | subscribeTopic (String topicName, TopicOptions options) |
abstract int | unsubscribeTopic (String topicName, TopicOptions options) |
abstract int | getSubscribedUserList (String topicName, UserList users) |
The StreamChannel class.
This class provides the stream channel methods that can be invoked by your app.
|
abstract |
Release the stream channel instance.
|
abstract |
Join the channel.
[in] | options | join channel options. |
|
abstract |
Leave the channel.
|
abstract |
Return the channel name of this stream channel.
|
abstract |
Join a topic.
[in] | topicName | The name of the topic. |
[in] | options | The options of join a topic. |
|
abstract |
Publish a message in the topic.
[in] | topicName | The name of the topic. |
[in] | message | The content of the message. |
|
abstract |
Leave the topic.
[in] | topicName | The name of the topic. |
|
abstract |
Subscribe a topic.
[in] | topicName | The name of the topic. |
[in] | options | The options of subscribe the topic. |
|
abstract |
Unsubscribe a topic.
[in] | topicName | The name of the topic. |
[in] | options | The options of unsubscribe the topic. |
|
abstract |
Get subscribed user list
[in] | topicName | The name of the topic. |
[out] | users | The list of subscribed users. |