FilterSet
data class FilterSet(val services: List<Filter.Service> = emptyList(), val name: Filter.Name.Exact? = null, val namePrefix: Filter.Name.Prefix? = null, val manufacturerData: List<Filter.ManufacturerData> = emptyList())
Deprecated
Replaced with FilterPredicateBuilder
Replace with
FilterPredicateBuilder().apply {
name = name
services = services
manufacturerData = manufacturerData
}.build()"
Content copied to clipboard
Filtering on Service Data is not supported because it is not implemented: https://github.com/WebBluetoothCG/web-bluetooth/blob/main/implementation-status.md
Filtering on Manufacturer Data is supported and a good explanation can be found here: https://github.com/WebBluetoothCG/web-bluetooth/blob/main/data-filters-explainer.md
Constructors
Link copied to clipboard
constructor(services: List<Filter.Service> = emptyList(), name: Filter.Name.Exact? = null, namePrefix: Filter.Name.Prefix? = null, manufacturerData: List<Filter.ManufacturerData> = emptyList())