Agora Java API Reference for Android
|
Public Member Functions | |
abstract RtmErrorCode | release () |
abstract void | join (JoinChannelOptions options, ResultCallback< Void > resultCallback) |
abstract void | renewToken (String token, ResultCallback< Void > resultCallback) |
abstract void | leave (ResultCallback< Void > resultCallback) |
abstract String | getChannelName () |
abstract void | joinTopic (String topicName, JoinTopicOptions options, ResultCallback< Void > resultCallback) |
abstract void | publishTopicMessage (String topicName, byte[] message, TopicMessageOptions options, ResultCallback< Void > resultCallback) |
abstract void | publishTopicMessage (String topicName, String message, TopicMessageOptions options, ResultCallback< Void > resultCallback) |
abstract void | leaveTopic (String topicName, ResultCallback< Void > resultCallback) |
abstract void | subscribeTopic (String topicName, TopicOptions options, ResultCallback< SubscribeTopicResult > resultCallback) |
abstract void | unsubscribeTopic (String topicName, TopicOptions options, ResultCallback< Void > resultCallback) |
abstract void | getSubscribedUserList (String topicName, ResultCallback< ArrayList< String >> resultCallback) |
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.
options | join channel options. |
resultCallback | A ResultCallback object.
|
|
abstract |
Renews the token. Once a token is enabled and used, it expires after a certain period of time. You should generate a new token on your server, call this method to renew it.
token | Token used renew. |
resultCallback | A ResultCallback object.
|
|
abstract |
Leave the channel.
resultCallback | A ResultCallback object.
|
|
abstract |
Return the channel name of this stream channel.
|
abstract |
Join a topic.
topicName | The name of the topic. |
options | The options of the topic. |
resultCallback | A ResultCallback object.
|
|
abstract |
Publish a binary message in the topic.
topicName | The name of the topic. |
message | The content of the message. |
options | The options of the message. |
resultCallback | A ResultCallback object.
|
|
abstract |
Publish a string message in the topic.
topicName | The name of the topic. |
message | The content of the message. |
options | The options of the message. |
resultCallback | A ResultCallback object.
|
|
abstract |
Leave the topic.
topicName | The name of the topic. |
resultCallback | A ResultCallback object.
|
|
abstract |
Subscribe a topic.
topicName | The name of the topic. |
options | The options of subscribe the topic. |
resultCallback | A ResultCallback object.
|
|
abstract |
Unsubscribe a topic.
topicName | The name of the topic. |
options | The options of unsubscribe the topic. |
resultCallback | A ResultCallback object.
|
|
abstract |
Get subscribed user list
topicName | The name of the topic. |
resultCallback | A ResultCallback object.
|