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.native.js 614B

123456789101112131415161718192021
  1. // @flow
  2. import { NativeModules } from 'react-native';
  3. export * from './functions.any';
  4. const { AudioMode } = NativeModules;
  5. /**
  6. * Handles changes to the `disableCallIntegration` setting.
  7. * On Android (where `AudioMode.setUseConnectionService` is defined) we must update
  8. * the native side too, since audio routing works differently.
  9. *
  10. * @param {boolean} disabled - Whether call integration is disabled or not.
  11. * @returns {void}
  12. */
  13. export function handleCallIntegrationChange(disabled: boolean) {
  14. if (AudioMode.setUseConnectionService) {
  15. AudioMode.setUseConnectionService(!disabled);
  16. }
  17. }