apidocs / com.nimmsta.core.android.device / DeviceListAdapter

DeviceListAdapter

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

Types

ViewHolder

class ViewHolder : ViewHolder

Constructors

<init>

Adapter for DeviceList, which holds all devices found. It also ensures devices are only there once.

DeviceListAdapter(context: Context)

Functions

addDevice

fun addDevice(device: 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(scanRecord: SearchScanResult): Unit