DeviceDiscoverer class
Constructors
Properties
-
clients
→ Stream<
DiscoveredClient> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
discoverClients(
{Duration timeout = const Duration(seconds: 5)}) → Future< List< DiscoveredClient> > -
discoverDevices(
{String? type, Duration timeout = const Duration(seconds: 5)}) → Future< List< DiscoveredDevice> > -
getDevices(
{String? type, Duration timeout = const Duration(seconds: 5), bool silent = true}) → Future< List< Device> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
quickDiscoverClients(
{Duration? timeout = const Duration(seconds: 5), Duration? searchInterval = const Duration(seconds: 10), String? query, bool unique = true}) → Stream< DiscoveredClient> -
search(
[String? searchTarget]) → void -
start(
{bool ipv4 = true, bool ipv6 = true, dynamic onError(Exception) = _doNowt, int port = 1900}) → Future - defaults to port 1900 to be able to receive broadcast notifications and not just M-SEARCH replies.
-
stop(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited