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

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