NEGroupCallEngineDelegate class

群呼业务回调代理

用于监听群呼业务相关事件,包括:

  • 收到群呼邀请
  • 成员列表变更
  • 成员挂断
  • 群呼结束

使用方式:

final delegate = NEGroupCallEngineDelegate(
  onReceiveGroupInvitation: (info) {
    print('收到群呼邀请: ${info.callId}');
  },
  onGroupMemberListChanged: (callId, members) {
    print('成员变更: $callId, 成员数: ${members.length}');
  },
  onGroupCallHangup: (event) {
    print('成员挂断: ${event.callId}');
  },
  onGroupCallEnd: (event) {
    print('群呼结束: ${event.callId}');
  },
);

NEGroupCallEngine.instance.addGroupCallDelegate(delegate);

Constructors

NEGroupCallEngineDelegate({void onReceiveGroupInvitation(NEGroupCallInfo info)?, void onGroupMemberListChanged(String callId, List<NEGroupCallMember> members)?, void onGroupCallHangup(NEGroupCallHangupEvent event)?, void onGroupCallEnd(NEGroupCallEndEvent event)?})
构造函数
const

Properties

hashCode int
The hash code for this object.
no setterinherited
onGroupCallEnd → void Function(NEGroupCallEndEvent event)?
群呼结束回调
final
onGroupCallHangup → void Function(NEGroupCallHangupEvent event)?
成员挂断回调
final
onGroupMemberListChanged → void Function(String callId, List<NEGroupCallMember> members)?
成员列表变更回调
final
onReceiveGroupInvitation → void Function(NEGroupCallInfo info)?
收到群呼邀请回调
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited