VIAudioDeviceManager class
Manages audio devices.
Limitations:
- It is not possible to select an VIAudioDevice.Earpiece while wired headset is connected.
Limitations for iOS:
- Wired headsets without a microphone may be recognized and selected as VIAudioDevice.Earpiece.
- iOS 12 and AirPods: during an active call, VIAudioDevice.Earpiece or VIAudioDevice.Speaker selection may fail if AirPods are used as current active device.
Limitations for Android:
- The plug in/out of a wired headset and bluetooth devices is monitored only if a connection to the Voximplant Cloud is active.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onAudioDeviceChanged ↔ VIAudioDeviceChanged?
-
Callback for getting notified about active audio device changes.
getter/setter pair
- onAudioDeviceListChanged ↔ VIAudioDeviceListChanged?
-
Callback for getting notified about new connected or disconnected audio
devices.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
callKitConfigureAudioSession(
) → Future< void> - iOS only. Initializes AVAudioSession for use with CallKit integration.
-
callKitReleaseAudioSession(
) → Future< void> - iOS only. Restores default AVAudioSession initialization routines.
-
callKitStartAudio(
) → Future< void> - iOS only. Starts AVAudioSession.
-
callKitStopAudio(
) → Future< void> - iOS only. Stops AVAudioSession.
-
getActiveDevice(
) → Future< VIAudioDevice> - Returns active audio device during the call or audio device that will be used for a call if there is no call at this moment.
-
getAudioDevices(
) → Future< List< VIAudioDevice> > - Returns the list of available audio devices.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
selectAudioDevice(
VIAudioDevice audioDevice) → Future< void> - Changes selection of the current active audio device.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited