You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

subscriber.js 486B

12345678910111213141516
  1. // @flow
  2. import { StateListenerRegistry } from '../base/redux';
  3. import { shouldDisplayTileView } from '../video-layout';
  4. declare var APP: Object;
  5. /**
  6. * StateListenerRegistry provides a reliable way of detecting changes to
  7. * preferred layout state and dispatching additional actions.
  8. */
  9. StateListenerRegistry.register(
  10. /* selector */ state => shouldDisplayTileView(state),
  11. /* listener */ displayTileView => {
  12. APP.API.notifyTileViewChanged(displayTileView);
  13. });