CustomFilter
class CustomFilter(@StringRes title: Int, @DrawableRes icon: Int = R.drawable.baseline_check_24, isInitiallySelected: Boolean = false, predicate: (selected: Boolean, result: ScanResult, highestRssi: Int) -> Boolean) : Filter
Custom filter.
The filter shows only devices that match the given predicate.
Parameters
title
The title of the filter.
icon
The icon to display for the filter.
isInitiallySelected
Whether the filter is initially selected, defaults to false.
predicate
The predicate function that takes the selection state, scan result, and highest RSSI, and returns true if the result should be included in the filtered list.