supports platform: ios, android This method enables accept remote invitation with RemoteInvitationProps. NOTICE: content bytelength has MAX_SIZE 32kb limit.
Promise
supports platform: ios, android This method enables cancel local invitation with invitationProps. NOTICE: content bytelength has MAX_SIZE 32kb limit.
uid | string | required | channelId | string | required |
Promies
supports platform: ios, android This method creates AgoraRTM instance and begin event observing, collect all both remote and local invitaitons and channels resources. method: createClient
String
void
supports platform: ios, android This method destroy AgoraRTM instance, stop event observing, release all both remote and local invitaitons and channels resources.
void
supports platform: ios, android This method enables you get members by channel id.
string.
Promise
uid | string | user id|
get the version of rtm sdk
(version) => {} required
supports platform: ios, android This method enables you get user attributes by uid.
string. user id
Promise
supports platform: ios, android This method do join channel with channelId
string
Promise
supports platform: ios, android This method do leave channel with channelId
string
Promise
supports platform: ios, android This method do login with UserInfo
token | string | optional |
Promise
supports platform: ios, android This method do logout.
Promise
supports platform: ios, android
(evt) => {} required
supports platform: ios, android This method enables query peer online user by id array.
string array
uid | string | user id|
supports platform: ios, android This method enables refuse remote invitation with RemoteInvitationProps. NOTICE: content bytelength has MAX_SIZE 32kb limit.
Promise
supports platform: ios, android This method enables you to remove all of local user attributes;
Promise
supports platform: ios, android This method enables you to remove exists attribute for local user.
string []
Promise
supports platform: ios, android
This method do renewToken when got tokenExpired event.
String
Promise
supports platform: ios, android This method enables you to replace attribute already exists or add attribute wasn't set for local user attributes;
Promise
supports platform: ios, android This method enables send local invitation with invitationProps. NOTICE: content bytelength has MAX_SIZE 32kb limit.
uid | string | required | channelId | string | required |
Promise
supports platform: ios, android This method enables send message by channel id. NOTICE: text bytelength has MAX_SIZE 32kb limit.
string.
string (bytesize shouldn't >= 32kb)
Promise
supports platform: ios, android This method do send p2p message with {@link AgoraPeerMessage}
peerId | string | required | offline | boolean | requried |
Promise
supports platform: ios, android This method enables set local user attributes with attributes {@link UserAttribute}
Promise
key | string | required |
set sdk log file
string: specified the generated log path
: sdk log level (0: "OFF", 0x0f: "INFO", 0x0e: "WARN", 0x0c: "ERROR", 0x08: "CRITICAL")
number: file size in kbytes Note File size settings of less than 512 KB or greater than 10 MB will not take effect.
Promise
Generated using TypeDoc
RtmEngineis the entry point of the react native agora rtm sdk. You can call the createClient method of RtmEngine to create anRtmEngineinstance.