-
Notifications
You must be signed in to change notification settings - Fork 2
AudioDevice
Lejla Solak edited this page Feb 10, 2025
·
3 revisions
Getter for the audioDeviceType field.
none
-
AudioDeviceType- The value of theaudioDeviceTypefield, which represents an enum value of the audio device type.
@Override
public void onActiveAudioDeviceChanged(@NonNull ActiveAudioDeviceChangedEvent activeAudioDeviceChangedEvent) {
AudioDeviceType audioDeviceType = activeAudioDeviceChangedEvent.getActiveAudioDevice().getAudioDeviceType();
}Getter for the name field.
none
-
String- The value of thenamefield, which represents a human-readable name describing the audio device.
@Override
public void onActiveAudioDeviceChanged(@NonNull ActiveAudioDeviceChangedEvent activeAudioDeviceChangedEvent) {
String name = activeAudioDeviceChangedEvent.getActiveAudioDevice().getName();
}Getter for the priorityLevel field.
none
-
int- The value of thepriorityLevelfield, which represents the priority level of the audio device. The value ranges from 1 to 4, where 1 represents the lowest priority and 4 represents the highest priority level.
@Override
public void onActiveAudioDeviceChanged(@NonNull ActiveAudioDeviceChangedEvent activeAudioDeviceChangedEvent) {
int priorityLevel = activeAudioDeviceChangedEvent.getActiveAudioDevice().getPriorityLevel();
}