TUILiveConnectionObserver constructor

TUILiveConnectionObserver({
  1. OnConnectionUserListChanged? onConnectionUserListChanged,
  2. OnConnectionRequestReceived? onConnectionRequestReceived,
  3. OnConnectionRequestCancelled? onConnectionRequestCancelled,
  4. OnConnectionRequestAccept? onConnectionRequestAccept,
  5. OnConnectionRequestReject? onConnectionRequestReject,
  6. OnConnectionRequestTimeout? onConnectionRequestTimeout,
})

Implementation

TUILiveConnectionObserver({
  OnConnectionUserListChanged? onConnectionUserListChanged,
  OnConnectionRequestReceived? onConnectionRequestReceived,
  OnConnectionRequestCancelled? onConnectionRequestCancelled,
  OnConnectionRequestAccept? onConnectionRequestAccept,
  OnConnectionRequestReject? onConnectionRequestReject,
  OnConnectionRequestTimeout? onConnectionRequestTimeout,
}) {
  if (onConnectionUserListChanged != null) {
    this.onConnectionUserListChanged = onConnectionUserListChanged;
  }
  if (onConnectionRequestReceived != null) {
    this.onConnectionRequestReceived = onConnectionRequestReceived;
  }
  if (onConnectionRequestCancelled != null) {
    this.onConnectionRequestCancelled = onConnectionRequestCancelled;
  }
  if (onConnectionRequestAccept != null) {
    this.onConnectionRequestAccept = onConnectionRequestAccept;
  }
  if (onConnectionRequestReject != null) {
    this.onConnectionRequestReject = onConnectionRequestReject;
  }
  if (onConnectionRequestTimeout != null) {
    this.onConnectionRequestTimeout = onConnectionRequestTimeout;
  }
}