agora-react-native-rtm
Version:
React Native around the Agora RTM SDKs for Android and iOS agora
39 lines (34 loc) • 1.11 kB
text/typescript
import { RTMClient } from './api/RTMClient';
import { RtmClientInternal } from './internal/RtmClientInternal';
import { RtmConfig } from './legacy/IAgoraRtmClient';
export * from './legacy/AgoraRtmBase';
export * from './legacy/IAgoraRtmClient';
export * from './legacy/IAgoraRtmLock';
export * from './legacy/IAgoraRtmPresence';
export * from './legacy/IAgoraRtmStorage';
export * from './legacy/IAgoraStreamChannel';
export * from './hooks';
export * from './api/RTMClient';
export * from './api/RTMEvents';
export * from './api/RTMStreamChannel';
export * from './api/RTMStorage';
export * from './api/RTMPresence';
export * from './api/RTMLock';
export * from './api/RTMHistory';
export {
isDebuggable,
setDebuggable,
callIrisApi,
} from './internal/IrisRtmEngine';
/**
* Creates one RTMClient object.
*
* Currently, the Agora RTM SDK v2.x supports creating only one RTMClient object for each app.
*
* @returns
* One RTMClient object.
*/
export function createAgoraRtmClient(config: RtmConfig): RTMClient {
return new RtmClientInternal(config);
}
export default createAgoraRtmClient;