public final class AudioDeviceUtil
extends java.lang.Object
AudioDevice objects.| Modifier and Type | Method and Description |
|---|---|
static com.avaya.clientservices.media.AudioDevice |
getAudioDeviceForHandset(HandsetType handset,
java.lang.Iterable<com.avaya.clientservices.media.AudioDevice> audioDevices)
Find the available
AudioDevice instance for a given
HandsetType. |
static com.avaya.clientservices.media.AudioDevice |
getAudioDeviceOfType(com.avaya.clientservices.media.AudioDevice.Type desiredType,
java.lang.Iterable<com.avaya.clientservices.media.AudioDevice> audioDevices)
Find the available
AudioDevice instance of a given
AudioDevice.Type. |
static com.avaya.clientservices.media.AudioDevice.Type |
getAudioDeviceTypeForHandset(HandsetType handset)
Get the
AudioDevice.Type for a given HandsetType. |
static HandsetType |
getHandsetTypeForAudioDevice(com.avaya.clientservices.media.AudioDevice device)
Get the
HandsetType of the given audio device. |
static HandsetType |
getHandsetTypeForAudioDeviceType(com.avaya.clientservices.media.AudioDevice.Type deviceType)
Get the
HandsetType corresponding to the given audio device type. |
static com.avaya.clientservices.media.AudioDevice |
getSpeakerAudioDevice(java.lang.Iterable<com.avaya.clientservices.media.AudioDevice> audioDevices)
Find the
AudioDevice for the built-in speakerphone. |
static boolean |
isAudioDeviceForHandset(com.avaya.clientservices.media.AudioDevice audioDevice,
HandsetType handset)
Is the given audio device of the type matching the given handset type?
|
@Nullable
public static com.avaya.clientservices.media.AudioDevice getAudioDeviceForHandset(@NonNull
HandsetType handset,
@NonNull
java.lang.Iterable<com.avaya.clientservices.media.AudioDevice> audioDevices)
AudioDevice instance for a given
HandsetType.handset - The type of handset in question.audioDevices - The available audio devices reported by the media
engine.null if no match.@Nullable
public static com.avaya.clientservices.media.AudioDevice getAudioDeviceOfType(@NonNull
com.avaya.clientservices.media.AudioDevice.Type desiredType,
@NonNull
java.lang.Iterable<com.avaya.clientservices.media.AudioDevice> audioDevices)
AudioDevice instance of a given
AudioDevice.Type.desiredType - The type of audio device to find.audioDevices - The available audio devices reported by the media
engine.null if no match.@NonNull
public static com.avaya.clientservices.media.AudioDevice getSpeakerAudioDevice(@NonNull
java.lang.Iterable<com.avaya.clientservices.media.AudioDevice> audioDevices)
AudioDevice for the built-in speakerphone.audioDevices - The available audio devices reported by the media
engine.@NonNull
public static com.avaya.clientservices.media.AudioDevice.Type getAudioDeviceTypeForHandset(@NonNull
HandsetType handset)
AudioDevice.Type for a given HandsetType.handset - The type of handset in question.@Nullable public static HandsetType getHandsetTypeForAudioDevice(@NonNull com.avaya.clientservices.media.AudioDevice device)
HandsetType of the given audio device.device - The audio device in question.HandsetType if there is one, otherwise
null.@Nullable public static HandsetType getHandsetTypeForAudioDeviceType(@NonNull com.avaya.clientservices.media.AudioDevice.Type deviceType)
HandsetType corresponding to the given audio device type.deviceType - The audio device type in question.HandsetType if there is one, otherwise
null.public static boolean isAudioDeviceForHandset(@NonNull
com.avaya.clientservices.media.AudioDevice audioDevice,
@NonNull
HandsetType handset)
audioDevice - The AudioDevice in question.handset - The HandsetType in question.true if the audio device matches the handset type,
false otherwise.