OnlyWithNames

class OnlyWithNames(@StringRes title: Int = R.string.filter_only_with_names, isInitiallySelected: Boolean = false) : Filter

Filter that allows scan results with no empty names.

This filter will only allow devices that have a non-empty name in their advertising data. If the device does not advertise a name, it will be excluded from the results.

Parameters

title

The title of the filter..

isInitiallySelected

Whether the filter is initially selected, defaults to false.

Constructors

Link copied to clipboard
constructor(@StringRes title: Int = R.string.filter_only_with_names, 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