new InviteManager()
InviteManager构造函数。
Members
-
<readonly> InviteManagerCallbackEnum :string
-
InviteManager级别回调的枚举
Type:
- string
Properties:
Name Type Default Description CALL_NOTIFYstring call.notify
Methods
-
addCallback(type, callback)
-
addCallback
Parameters:
Name Type Description typeObject callbackObject Example
inviteManager.addCallback(inviteManager.InviteManagerCallbackEnum.CALL_NOTIFY, onCall); 邀请回调 param:invite - 邀请对象 function onCall(invite){ } -
call(callInvite)
-
发启邀请
Parameters:
Name Type Description callInviteObject 邀请对象
-
createInvite(fromUserId, toUserId, options)
-
创建邀请对象
Parameters:
Name Type Description fromUserIdString 邀请发起方用户id
toUserIdString 邀请接受方用户id
optionsObject 参数
-
getInvite(InviteId)
-
通过ID获取Invite对象
Parameters:
Name Type Description InviteIdstring InviteId