Function API | Description |
invite member | |
cancel invitation | |
accept invitation | |
reject invitation | |
invitation list | |
Event API | Description |
Invitation callback received | |
Invitation handled on another device callback | |
Invitation cancelled callback | |
Invitation accepted callback | |
Invitation rejected callback | |
Invitation timeout callback | |
Invitation revoked by admin/room owner callback | |
New invitation callback | |
Invitation removed callback | |
Invitation status change callback |
Function List | Description |
Invitation information structure |
Enumeration Types | Description |
invitation status | |
Invite error code enumeration | |
Rejection reason enumeration |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();await conferenceInvitationManager.inviteUsers({roomId: '12345',timeout: 60,userIdList,extensionInfo})
Parameter | Type | Description | Default Value | Description |
roomId | string | Required | - | Room ID, roomId has a length limit of 64 bytes and only supports the following character set: uppercase and lowercase English letters (a-zA-Z) Digits (0-9) space ! # $ % & ( ) + - : ; < = . > ? @ [ ] ^ _ { } | ~ , |
timeout | number | optional | 0 | Timeout Time |
userIdList | Array<string> | Required | [] | Member User ID list. |
extensionInfo | string | optional | '' | Extended information. |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();await conferenceInvitationManager.cancelInvitation({roomId: '12345';userIdList: ['userId']})
Parameter | Type | Description | Default Value | Description |
roomId | string | Required | - | Room ID, roomId has a length limit of 64 bytes and only supports the following character set: uppercase and lowercase English letters (a-zA-Z) Digits (0-9) space ! # $ % & ( ) + - : ; < = . > ? @ [ ] ^ _ { } | ~ , |
userIdList | Array<string> | Required | [] | Member User ID list. |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();await conferenceInvitationManager.accept({roomId: '12345';})
Parameter | Type | Description | Default Value | Description |
roomId | string | Required | - | Room ID, roomId has a length limit of 64 bytes and only supports the following character set: uppercase and lowercase English letters (a-zA-Z) Digits (0-9) space ! # $ % & ( ) + - : ; < = . > ? @ [ ] ^ _ { } | ~ , |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();await conferenceInvitationManager.reject({roomId: '12345';})
Parameter | Type | Description | Default Value | Description |
roomId | string | Required | - | Room ID, roomId has a length limit of 64 bytes and only supports the following character set: uppercase and lowercase English letters (a-zA-Z) Digits (0-9) space ! # $ % & ( ) + - : ; < = . > ? @ [ ] ^ _ { } | ~ , |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();await conferenceInvitationManager.reject({roomId: '12345';cursor: '';count: 10;})
Parameter | Type | Description | Default Value | Description |
roomId | string | Required | - | Room ID, roomId has a length limit of 64 bytes and only supports the following character set: uppercase and lowercase English letters (a-zA-Z) Digits (0-9) space ! # $ % & ( ) + - : ; < = . > ? @ [ ] ^ _ { } | ~ , |
cursor | string | Required | '' | Retrieve pagination index. For the first pull, enter "". If the callback succeeded and the returned data contains a non-empty cursor, it means pagination is required. Use the returned cursor as parameter to call the API again until the cursor is "", indicating all data has been pulled. |
count | number | Required | 0 | Pull count this time. |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();const callback = ({ roomInfo, accepted, extensionInfo }) => {console.log('conferenceInvitationManager.onReceiveInvitation', roomInfo, accepted, extensionInfo);};conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onReceiveInvitation, callback);
Parameter | Type | Required or Not | Default Value | Description |
eventName | Yes | - | Event name. | |
func | (...args: any[]) => void | Yes | - | event handler |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();const callback = ({ roomInfo, accepted, extensionInfo }) => {console.log('conferenceInvitationManager.onReceiveInvitation', roomInfo, accepted, extensionInfo);};conferenceInvitationManager.off(TUIConferenceInvitationManagerEvents.onReceiveInvitation, callback);
Parameter | Type | Required or Not | Default Value | Description |
eventName | Yes | - | Event name. | |
func | (...args: any[]) => void | Yes | - | event handler |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();const callback = ({ roomInfo, accepted, extensionInfo }) => {console.log('conferenceInvitationManager.onReceiveInvitation', roomInfo, accepted, extensionInfo);};conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onReceiveInvitation, callback);
Parameter | Type | Description |
roomInfo | Room information. | |
invitation | Invitation message. | |
extensionInfo | string | Extended information. |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();const callback = ({ roomInfo, accepted }) => {console.log('conferenceInvitationManager.onInvitationHandledByOtherDevice', roomInfo, accepted);};conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationHandledByOtherDevice, callback);
Parameter | Type | Description |
roomInfo | Room information. | |
accepted | boolean | Whether the invitation is accepted. |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();const callback = ({ roomInfo, invitation }) => {console.log('conferenceInvitationManager.onInvitationCancelled', roomInfo, invitation);};conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationCancelled, callback);
Parameter | Type | Description |
roomInfo | Room information. | |
invitation | Invitation message. |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();const callback = ({ roomInfo, invitation }) => {console.log('conferenceInvitationManager.onInvitationAccepted', roomInfo, invitation);};conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationAccepted, callback);
Parameter | Type | Description |
roomInfo | Room information. | |
invitation | Invitation message. |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();const callback = ({ roomInfo, invitation, reason }) => {console.log('conferenceInvitationManager.onInvitationRejected', roomInfo, invitation, reason);};conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationRejected, callback);
Parameter | Type | Description |
roomInfo | Room information. | |
invitation | Invitation message. | |
reason | Reason for rejection. |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();const callback = ({ roomInfo, invitation }) => {console.log('conferenceInvitationManager.onInvitationTimeout', roomInfo, invitation);};conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationTimeout, callback);
Parameter | Type | Description |
roomInfo | Room information. | |
invitation | Invitation message. |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();const callback = ({ roomInfo, invitation, userRole }) => {console.log('conferenceInvitationManager.onInvitationRevokedByAdmin', roomInfo, invitation, operateUser);};conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationRevokedByAdmin, callback);
Parameter | Type | Description |
roomInfo | Room information. | |
invitation | Invitation message. | |
operateUser | Information of the person who revoked the invitation |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();const callback = ({ roomInfo, invitation }) => {console.log('conferenceInvitationManager.onInvitationAdded', roomInfo, invitation);};conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationAdded, callback);
Parameter | Type | Description |
roomInfo | Room information. | |
invitation | Invitation message. |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();const callback = ({ roomInfo, invitation }) => {console.log('conferenceInvitationManager.onInvitationRemoved', roomInfo, invitation);};conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationRemoved, callback);
Parameter | Type | Description |
roomInfo | Room information. | |
invitation | Invitation message. |
const roomEngine = new TUIRoomEngine();const conferenceInvitationManager = roomEngine.getConferenceInvitationManager();const callback = ({ roomInfo, invitation }) => {console.log('conferenceInvitationManager.onInvitationStatusChanged', roomInfo, invitation);};conferenceInvitationManager.on(TUIConferenceInvitationManagerEvents.onInvitationStatusChanged, callback);
Parameter | Type | Description |
roomInfo | Room information. | |
invitation | Invitation message. |
Enumeration Types | Description |
invitee | Invitee information. |
inviter | Inviter information. |
status | Invitation status. |
Enumeration | Value | Description |
NONE | 0 | Unknown status. |
PENDING | 1 | Pending status. |
TIMEOUT | 2 | Timeout status. |
ACCEPTED | 3 | Accepted status. |
REJECTED | 4 | Rejected status. |
Enumeration | Value | Description |
SUCCESS | 0 | Invitation succeeded. |
ALREADY_IN_INVITATION_LIST | 1 | The current user is already in the invitation list. |
ALREADY_IN_CONFERENCE | 2 | The current user is in the room. |
Enumeration | Value | Description |
REJECT_TO_ENTER | 0 | Access denied. |
IN_OTHER_CONFERENCE | 1 | In another meeting. |
Feedback