選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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