fromValue static method

AudioOutputDevice fromValue(
  1. int value
)

Implementation

static AudioOutputDevice fromValue(int value) {
  switch (value) {
    case 0:
      return AudioOutputDevice.kSpeakerPhone;
    case 1:
      return AudioOutputDevice.kWiredHeadset;
    case 2:
      return AudioOutputDevice.kEarpiece;
    case 3:
      return AudioOutputDevice.kBluetoothHeadset;
    default:
      return AudioOutputDevice.kEarpiece;
  }
}