您最多选择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. }