TUILiveLayoutObserver constructor

TUILiveLayoutObserver({
  1. OnLiveVideoLayoutChanged? onLiveVideoLayoutChanged,
  2. OnSeatLayoutChanged? onSeatLayoutChanged,
})

Implementation

TUILiveLayoutObserver({
  OnLiveVideoLayoutChanged? onLiveVideoLayoutChanged,
  OnSeatLayoutChanged? onSeatLayoutChanged,
}) {
  if (onLiveVideoLayoutChanged != null) {
    this.onLiveVideoLayoutChanged = onLiveVideoLayoutChanged;
  }
  if (onSeatLayoutChanged != null) {
    this.onSeatLayoutChanged = onSeatLayoutChanged;
  }
}