buildAndroid method
Implementation
AudioContextAndroid buildAndroid() {
return AudioContextAndroid(
isSpeakerphoneOn: route == AudioContextConfigRoute.speaker,
stayAwake: stayAwake,
usageType: respectSilence
? AndroidUsageType.notificationRingtone
: (route == AudioContextConfigRoute.earpiece
? AndroidUsageType.voiceCommunication
: AndroidUsageType.media),
audioFocus: focus == AudioContextConfigFocus.gain
? AndroidAudioFocus.gain
: (focus == AudioContextConfigFocus.duckOthers
? AndroidAudioFocus.gainTransientMayDuck
: AndroidAudioFocus.none),
);
}