audioOutputText static method

String audioOutputText(
  1. String audioValue
)

Implementation

static String audioOutputText(String audioValue) {
  switch (audioValue) {
    case 'speaker':
      return 'Speaker';
    case 'earpiece':
      return 'Earpiece';
    case 'bluetooth':
      return 'Bluetooth';
    case 'wired-headset':
      return 'Wired headset';
    default:
      return 'Earpiece';
  }
}