WithServiceUuid

class WithServiceUuid(uuid: Uuid, @DrawableRes icon: Int = R.drawable.baseline_check_24, @StringRes title: Int = R.string.filter_with_service_uuid, isInitiallySelected: Boolean = false) : Filter

Filter devices based on a Service UUID.

This filter will match devices that advertise the given service UUID in their advertising data, service data, or service solicitation UUIDs.

Parameters

uuid

The UUID to filter.

icon

The icon to display for the filter.

title

The title of the filter.

isInitiallySelected

Whether the filter is initially selected, defaults to false.

Constructors

Link copied to clipboard
constructor(uuid: Uuid, @DrawableRes icon: Int = R.drawable.baseline_check_24, @StringRes title: Int = R.string.filter_with_service_uuid, 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