AndroidAudioManager class Null safety

If you test any feature listed as UNTESTED, consider sharing whether it works on GitHub.

Constructors

AndroidAudioManager()
factory

Properties

becomingNoisyEventStream Stream<void>
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

abandonAudioFocus() Future<bool>
adjustStreamVolume(AndroidStreamType streamType, AndroidAudioAdjustment direction, AndroidAudioVolumeFlags flags) Future<void>
(UNTESTED)
adjustSuggestedStreamVolume(AndroidAudioAdjustment direction, AndroidStreamType? suggestedStreamType, AndroidAudioVolumeFlags flags) Future<void>
(UNTESTED)
adjustVolume(AndroidAudioAdjustment direction, AndroidAudioVolumeFlags flags) Future<void>
(UNTESTED)
close() → void
dispatchMediaKeyEvent(AndroidKeyEvent keyEvent) Future<void>
(UNTESTED) Requires API level 19
generateAudioSessionId() Future<int>
(UNTESTED) Requires API level 21
getAllowedCapturePolicy() Future<AndroidAudioCapturePolicy>
(UNTESTED) Requires API level 29
getDevices(AndroidGetAudioDevicesFlags flags) Future<List<AndroidAudioDeviceInfo>>
Requires API level 23
getMicrophones() Future<List<AndroidMicrophoneInfo>>
(UNTESTED) Requires API level 28
getMode() Future<AndroidAudioHardwareMode>
(UNTESTED)
getOutputFramesPerBuffer() Future<int?>
(UNTESTED) Requires API level 17
getOutputSampleRate() Future<int?>
(UNTESTED) Requires API level 17
getParameters(String keys) Future<Map<String, String>>
(UNTESTED)
getRingerMode() Future<AndroidRingerMode>
(UNTESTED)
getStreamMaxVolume(AndroidStreamType streamType) Future<int>
(UNTESTED)
getStreamMinVolume(AndroidStreamType streamType) Future<int>
(UNTESTED) Requires API level 28
getStreamVolume(AndroidStreamType streamType) Future<int>
(UNTESTED)
getStreamVolumeDb(AndroidStreamType streamType, int index, AndroidAudioDeviceType deviceType) Future<double>
(UNTESTED) Requires API level 28
getSupportAudioSourceUnprocessed() Future<bool>
(UNTESTED) Requires API level 17
getSupportMicNearUltrasound() Future<bool>
(UNTESTED) Requires API level 17
getSupportSpeakerNearUltrasound() Future<bool>
(UNTESTED) Requires API level 17
isBluetoothScoAvailableOffCall() Future<bool>
(UNTESTED)
isBluetoothScoOn() Future<bool>
(UNTESTED)
isHapticPlaybackSupported() Future<bool>
(UNTESTED) Requires API level 29
isMicrophoneMute() Future<bool>
(UNTESTED)
isMusicActive() Future<bool>
(UNTESTED)
isSpeakerphoneOn() Future<bool>
(UNTESTED)
isStreamMute(AndroidStreamType streamType) Future<bool>
(UNTESTED) Requires API level 23
isVolumeFixed() Future<bool>
(UNTESTED) Requires API level 21
loadSoundEffects() Future<void>
(UNTESTED)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
playSoundEffect(AndroidSoundEffectType effectType, {double? volume}) Future<void>
(UNTESTED)
requestAudioFocus(AndroidAudioFocusRequest focusRequest) Future<bool>
setAllowedCapturePolicy(AndroidAudioCapturePolicy capturePolicy) Future<void>
(UNTESTED) Requires API level 29
setAudioDevicesAddedListener(AndroidOnAudioDevicesChanged onAudioDevicesAdded) → void
setAudioDevicesRemovedListener(AndroidOnAudioDevicesChanged onAudioDevicesRemoved) → void
setBluetoothScoOn(bool enabled) Future<void>
(UNTESTED)
setMicrophoneMute(bool enabled) Future<void>
(UNTESTED)
setMode(AndroidAudioHardwareMode mode) Future<void>
(UNTESTED)
setParameters(Map<String, String> parameters) Future<void>
(UNTESTED)
setRingerMode(AndroidRingerMode ringerMode) Future<void>
(UNTESTED)
setSpeakerphoneOn(bool enabled) Future<void>
(UNTESTED)
setStreamVolume(AndroidStreamType streamType, int index, AndroidAudioVolumeFlags flags) Future<void>
(UNTESTED)
startBluetoothSco() Future<void>
(UNTESTED)
stopBluetoothSco() Future<void>
(UNTESTED)
toString() String
A string representation of this object. [...]
inherited
unloadSoundEffects() Future<void>
(UNTESTED)

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited