OnlyNearby

class OnlyNearby(rssiThreshold: Int = -50, @StringRes title: Int = R.string.filter_only_nearby, isInitiallySelected: Boolean = false) : Filter

Filter nearby devices based on RSSI value.

It will allow devices with RSSI value greater or equal to the given RSSI value.

Parameters

rssiThreshold

The RSSI threshold to filter nearby devices, defaults to -50 dBm.

title

The title of the filter.

isInitiallySelected

Whether the filter is initially selected, defaults to false.

Constructors

Link copied to clipboard
constructor(rssiThreshold: Int = -50, @StringRes title: Int = R.string.filter_only_nearby, isInitiallySelected: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val predicate: (selected: Boolean, result: ScanResult, highestRssi: Int) -> Boolean
Link copied to clipboard