scan

fun scan(transportType: TransportType? = null): Flow<DeviceInfo>

Stream discovered devices across all transports, or filter by type. Cancel collection to stop scanning.

Exposed to Flutter as a Stream via EventChannel. The KSP processor detects @FlutterMethod returning Flow and generates Stream backed by EventChannel instead of Future via MethodChannel.

Parameters

transportType

Filter by transport type, or null to scan all