TUILiveConnectionObserver constructor
TUILiveConnectionObserver({
- OnConnectionUserListChanged? onConnectionUserListChanged,
- OnConnectionRequestReceived? onConnectionRequestReceived,
- OnConnectionRequestCancelled? onConnectionRequestCancelled,
- OnConnectionRequestAccept? onConnectionRequestAccept,
- OnConnectionRequestReject? onConnectionRequestReject,
- 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;
}
}