handleCallInterruptionCallbacks function

Future<void> handleCallInterruptionCallbacks(
  1. void onInterruptionStart()?,
  2. void onInterruptionEnd()?, {
  3. AndroidInterruptionSource androidInterruptionSource = AndroidInterruptionSource.audioFocusAndTelephony,
  4. @Deprecated('Audio focus is now handled in a way that does not require this parameter. It will be removed in the next major version.') AndroidAudioAttributesUsageType? androidAudioAttributesUsageType,
  5. @Deprecated('Audio focus is now handled in a way that does not require this parameter. It will be removed in the next major version.') AndroidAudioAttributesContentType? androidAudioAttributesContentType,
})

Implementation

Future<void> handleCallInterruptionCallbacks(
  void Function()? onInterruptionStart,
  void Function()? onInterruptionEnd, {
  AndroidInterruptionSource androidInterruptionSource =
      AndroidInterruptionSource.audioFocusAndTelephony,
  @Deprecated(
    'Audio focus is now handled in a way that does not require this parameter. It will be removed in the next major version.',
  )
  AndroidAudioAttributesUsageType? androidAudioAttributesUsageType,
  @Deprecated(
    'Audio focus is now handled in a way that does not require this parameter. It will be removed in the next major version.',
  )
  AndroidAudioAttributesContentType? androidAudioAttributesContentType,
}) {
  return (RTCFactoryNative.instance as RTCFactoryNative)
      .handleCallInterruptionCallbacks(
        onInterruptionStart,
        onInterruptionEnd,
        androidInterruptionSource: androidInterruptionSource,
        androidAudioAttributesUsageType: androidAudioAttributesUsageType,
        androidAudioAttributesContentType: androidAudioAttributesContentType,
      );
}