# InviteManager

#### new InviteManager()

Description:
  - InviteManager构造函数。
Source:
  - invite/inviteManager.js, line 8

### Members

#### (readonly) InviteManagerCallbackEnum :string

Description:
  - InviteManager级别回调的枚举
Source:
  - invite/inviteManager.js, line 14

##### Properties:

Name | Type | Description
--- | --- | ---
`CALL_NOTIFY` | string |

InviteManager级别回调的枚举

##### Type:

- string

#### (readonly) InviteManagerCallbackEnum :string

Description:
  - InviteManager级别回调的枚举
Source:
  - invite/inviteManager.js, line 14

##### Properties:

Name | Type | Description
--- | --- | ---
`CALL_NOTIFY` | string |

InviteManager级别回调的枚举

##### Type:

- string

### Methods

#### addCallback(type, callback)

Description:
  - addCallback
Source:
  - invite/inviteManager.js, line 97

##### Example

    inviteManager.addCallback(inviteManager.InviteManagerCallbackEnum.CALL_NOTIFY, onCall);

    邀请回调
    param:invite － 邀请对象
    function onCall(invite){
    }

##### Parameters:

Name | Type | Description
--- | --- | ---
`type` | Object |
`callback` | Object |

#### addCallback(type, callback)

Description:
  - addCallback
Source:
  - invite/inviteManager.js, line 97

##### Example

    inviteManager.addCallback(inviteManager.InviteManagerCallbackEnum.CALL_NOTIFY, onCall);

    邀请回调
    param:invite － 邀请对象
    function onCall(invite){
    }

##### Parameters:

Name | Type | Description
--- | --- | ---
`type` | Object |
`callback` | Object |

#### call(callInvite)

Description:
  - 发启邀请
Source:
  - invite/inviteManager.js, line 51

##### Parameters:

Name | Type | Description
--- | --- | ---
`callInvite` | Object | 邀请对象

#### call(callInvite)

Description:
  - 发启邀请
Source:
  - invite/inviteManager.js, line 51

##### Parameters:

Name | Type | Description
--- | --- | ---
`callInvite` | Object | 邀请对象

#### createInvite(fromUserId, toUserId, options)

Description:
  - 创建邀请对象
Source:
  - invite/inviteManager.js, line 30

##### Parameters:

Name | Type | Description
--- | --- | ---
`fromUserId` | String | 邀请发起方用户id
`toUserId` | String | 邀请接受方用户id
`options` | Object | 参数

#### createInvite(fromUserId, toUserId, options)

Description:
  - 创建邀请对象
Source:
  - invite/inviteManager.js, line 30

##### Parameters:

Name | Type | Description
--- | --- | ---
`fromUserId` | String | 邀请发起方用户id
`toUserId` | String | 邀请接受方用户id
`options` | Object | 参数

#### getInvite(InviteId)

Description:
  - 通过ID获取Invite对象
Source:
  - invite/inviteManager.js, line 40

##### Parameters:

Name | Type | Description
--- | --- | ---
`InviteId` | string | InviteId

#### getInvite(InviteId)

Description:
  - 通过ID获取Invite对象
Source:
  - invite/inviteManager.js, line 40

##### Parameters:

Name | Type | Description
--- | --- | ---
`InviteId` | string | InviteId

## InviteManager

#### new InviteManager()

Description:
  - InviteManager构造函数。
Source:
  - invite/inviteManager.js, line 8

### Members

#### (readonly) InviteManagerCallbackEnum :string

Description:
  - InviteManager级别回调的枚举
Source:
  - invite/inviteManager.js, line 14

##### Properties:

Name | Type | Description
--- | --- | ---
`CALL_NOTIFY` | string |

InviteManager级别回调的枚举

##### Type:

- string

#### (readonly) InviteManagerCallbackEnum :string

Description:
  - InviteManager级别回调的枚举
Source:
  - invite/inviteManager.js, line 14

##### Properties:

Name | Type | Description
--- | --- | ---
`CALL_NOTIFY` | string |

InviteManager级别回调的枚举

##### Type:

- string

### Methods

#### addCallback(type, callback)

Description:
  - addCallback
Source:
  - invite/inviteManager.js, line 97

##### Example

    inviteManager.addCallback(inviteManager.InviteManagerCallbackEnum.CALL_NOTIFY, onCall);

    邀请回调
    param:invite － 邀请对象
    function onCall(invite){
    }

##### Parameters:

Name | Type | Description
--- | --- | ---
`type` | Object |
`callback` | Object |

#### addCallback(type, callback)

Description:
  - addCallback
Source:
  - invite/inviteManager.js, line 97

##### Example

    inviteManager.addCallback(inviteManager.InviteManagerCallbackEnum.CALL_NOTIFY, onCall);

    邀请回调
    param:invite － 邀请对象
    function onCall(invite){
    }

##### Parameters:

Name | Type | Description
--- | --- | ---
`type` | Object |
`callback` | Object |

#### call(callInvite)

Description:
  - 发启邀请
Source:
  - invite/inviteManager.js, line 51

##### Parameters:

Name | Type | Description
--- | --- | ---
`callInvite` | Object | 邀请对象

#### call(callInvite)

Description:
  - 发启邀请
Source:
  - invite/inviteManager.js, line 51

##### Parameters:

Name | Type | Description
--- | --- | ---
`callInvite` | Object | 邀请对象

#### createInvite(fromUserId, toUserId, options)

Description:
  - 创建邀请对象
Source:
  - invite/inviteManager.js, line 30

##### Parameters:

Name | Type | Description
--- | --- | ---
`fromUserId` | String | 邀请发起方用户id
`toUserId` | String | 邀请接受方用户id
`options` | Object | 参数

#### createInvite(fromUserId, toUserId, options)

Description:
  - 创建邀请对象
Source:
  - invite/inviteManager.js, line 30

##### Parameters:

Name | Type | Description
--- | --- | ---
`fromUserId` | String | 邀请发起方用户id
`toUserId` | String | 邀请接受方用户id
`options` | Object | 参数

#### getInvite(InviteId)

Description:
  - 通过ID获取Invite对象
Source:
  - invite/inviteManager.js, line 40

##### Parameters:

Name | Type | Description
--- | --- | ---
`InviteId` | string | InviteId

#### getInvite(InviteId)

Description:
  - 通过ID获取Invite对象
Source:
  - invite/inviteManager.js, line 40

##### Parameters:

Name | Type | Description
--- | --- | ---
`InviteId` | string | InviteId