Skip to content

AudioDeviceType

Lejla Solak edited this page Jun 7, 2023 · 1 revision



BLUETOOTH

Description

Audio device type representing bluetooth headset. Has the highest priority level 4.



WIRED_HEADSET

Description

Audio device type representing wired headset. Has the priority level 3.



EARPIECE

Description

Audio device type representing earpiece. Has the priority level 2.



SPEAKER

Description

Audio device type representing speaker. Has the lowest priority level 1.



getName()

Description

Getter for the name field.

Arguments

  • none

Returns

  • String - Value of the name field representing a human-readable name describing the audio device type.

Example

String typeName = AudioDeviceType.BLUETOOTH.getName();



getPriorityLevel()

Description

Getter for the priorityLevel field.

Arguments

  • none

Returns

  • int - Value of the priorityLevel field representing the priority level of the audio device type. The value ranges from 1 to 4, where 1 represents the lowest priority and 4 represents the highest priority level.

Example

int priorityLevel = AudioDeviceType.BLUETOOTH.getPriorityLevel();

Tutorials

Migration guides

Reference documentation

Clone this wiki locally