addObserver method

void addObserver(
  1. TUIRoomObserver observer
)

Implementation

void addObserver(TUIRoomObserver observer) {
  _observerList.add(observer);
  _observerProxy.addObserver(observer);
  if (!_globalCallbackMap.containsKey(_globalUserData)) {
    _globalCallbackMap.addAll({_globalUserData!: _observerList});
  }
}