Just add private val before pairedDevice: List<BluetoothClass.Device> in constructor and boom you can now use pairedDevice in getView
private val
pairedDevice: List<BluetoothClass.Device>
pairedDevice
getView
So It will look like