services

fun services(uuids: List<Uuid> = emptyList()): StateFlow<List<RemoteService>?>

Returns a flow with a list of services discovered on the device.

The flow emits null when the device is not connected. The list will be updated when the services are discovered.

Parameters

uuids

An optional list of service UUID to filter the results. If empty, all services will be returned. Some platforms may do partial service discovery and return only services with given UUIDs.