handleCallInterruptionCallbacks function
Future<void>
handleCallInterruptionCallbacks(
- void onInterruptionStart()?,
- void 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,
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,
);
}