class DeviceListAdapter : Adapter<ViewHolder>
Adapter for DeviceList, which holds all devices found. It also ensures devices are only there once.
Author
NIMMSTA Team
Copyright
NIMMSTA GmbH & IBPG 2020
License
NIMMSTA GmbH
ViewHolder |
class ViewHolder : ViewHolder |
<init> |
Adapter for DeviceList, which holds all devices found. It also ensures devices are only there once. DeviceListAdapter(context: Context) |
addDevice |
fun addDevice(: SearchScanResult): Unit |
clear |
fun clear(): Unit |
getDevice |
fun getDevice(position: Int): SearchScanResult? |
getItemCount |
fun getItemCount(): Int |
getItemId |
fun getItemId(i: Int): Long |
onBindViewHolder |
fun onBindViewHolder(holder: ViewHolder, position: Int): Unit |
onCreateViewHolder |
fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder |
removeDevice |
fun removeDevice(: SearchScanResult): Unit |