Filter

sealed class Filter

All Filters are supported on all platforms, except for Filter.Address, which is only supported on Android.

FilterAndroidAppleJavaScript
Service✓✓✓✓*✓✓
Name✓✓✓✓
NamePrefix✓✓
Address✓✓
ManufacturerData✓✓✓✓

✓✓ = Supported natively ✓ = Support provided by Kable via flow filter ✓✓* = Supported natively if the only filter type used, otherwise falls back to flow filter

Inheritors

Types

Link copied to clipboard
data class Address(val address: String) : Filter
Link copied to clipboard
class ManufacturerData(val id: Int, val data: ByteArray? = null, val dataMask: ByteArray? = null) : Filter

Provides support for filtering against advertisement manufacturer data.

Link copied to clipboard
sealed class Name : Filter
Link copied to clipboard
data class Service(val uuid: Uuid) : Filter

1: The recommended practice is to provide only service filters on Apple platform. If any filters other than Filter.Service are used on Apple platform, then filtering will not be performed natively.

Link copied to clipboard
class ServiceData(val uuid: Uuid, val data: ByteArray? = null, val dataMask: ByteArray? = null) : Filter

Provides support for filtering against advertisement service data.