Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

functions.js 890B

1234567891011121314151617181920212223242526272829
  1. // @flow
  2. import debounce from 'lodash/debounce';
  3. import { NativeModules } from 'react-native';
  4. import { readyToClose } from '../external-api/actions';
  5. /**
  6. * Sends a specific event to the native counterpart of the External API. Native
  7. * apps may listen to such events via the mechanisms provided by the (native)
  8. * mobile Jitsi Meet SDK.
  9. *
  10. * @param {Object} store - The redux store.
  11. * @param {string} name - The name of the event to send.
  12. * @param {Object} data - The details/specifics of the event to send determined
  13. * by/associated with the specified {@code name}.
  14. * @returns {void}
  15. */
  16. export function sendEvent(store: Object, name: string, data: Object) {
  17. NativeModules.ExternalAPI.sendEvent(name, data);
  18. }
  19. /**
  20. * Debounced sending of `readyToClose`.
  21. */
  22. export const _sendReadyToClose = debounce(dispatch => {
  23. dispatch(readyToClose());
  24. }, 2500, { leading: true });