Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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