agora-react-native-rtm
Version:
React Native around the Agora RTM SDKs for Android and iOS agora
20 lines • 1.47 kB
TypeScript
import { GetSubscribedUserListResponse, JoinChannelResponse, JoinTopicResponse, LeaveChannelResponse, LeaveTopicResponse, PublishTopicMessageResponse, SubscribeTopicResponse, UnsubscribeTopicResponse } from '../api/RTMStreamChannel';
import { TopicMessageOptions } from '../legacy/AgoraRtmBase';
import { JoinTopicOptions, TopicOptions } from '../legacy/IAgoraStreamChannel';
import { JoinChannelOptions } from '../legacy/IAgoraStreamChannel';
import { IStreamChannelImpl } from '../legacy/impl/IAgoraStreamChannelImpl';
export declare class StreamChannelInternal extends IStreamChannelImpl {
private readonly _channelName;
constructor(channelName: string);
get channelName(): string;
join(options: JoinChannelOptions): Promise<JoinChannelResponse>;
leave(): Promise<LeaveChannelResponse>;
joinTopic(topicName: string, options?: JoinTopicOptions): Promise<JoinTopicResponse>;
publishTopicMessage(topicName: string, message: string | Uint8Array, options?: TopicMessageOptions): Promise<PublishTopicMessageResponse>;
leaveTopic(topicName: string): Promise<LeaveTopicResponse>;
subscribeTopic(topicName: string, options?: TopicOptions): Promise<SubscribeTopicResponse>;
unsubscribeTopic(topicName: string, options?: TopicOptions): Promise<UnsubscribeTopicResponse>;
getSubscribedUserList(topicName: string): Promise<GetSubscribedUserListResponse>;
release(): number;
}
//# sourceMappingURL=StreamChannelInternal.d.ts.map