InviteManager

InviteManager

new InviteManager()

Since:
  • 2019-09-19
Author:

Methods

(static) addCallback(type, callback)

Description:
  • InviteManager级别的回调

Example
inviteManager.addCallback(app.data.Enum.InviteManagerCallbackEnum.CALL_NOTIFY, onCall);

邀请回调
param:invite - 邀请对象
function onCall(invite){
}
Parameters:
Name Type Description
type Object
callback Object

(static) call(callInvite)

Description:
  • 发启邀请

Parameters:
Name Type Description
callInvite Object

邀请对象

(static) createInvite(fromUserId, toUserId, options)

Description:
  • 创建邀请对象

Parameters:
Name Type Description
fromUserId String

邀请发起方用户id

toUserId String

邀请接受方用户id

options Object

参数

(static) getInvite(InviteId)

Description:
  • 通过ID获取Invite对象,如有多个对象取最新的对象

Parameters:
Name Type Description
InviteId string

InviteId