Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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. });