buildAndroid method

AudioContextAndroid buildAndroid()

Implementation

AudioContextAndroid buildAndroid() {
  return AudioContextAndroid(
    isSpeakerphoneOn: forceSpeaker,
    stayAwake: stayAwake,
    usageType: respectSilence
        ? AndroidUsageType.notificationRingtone
        : AndroidUsageType.media,
    audioFocus: duckAudio
        ? AndroidAudioFocus.gainTransientMayDuck
        : AndroidAudioFocus.gain,
  );
}