DiscoveryService class
Device discovery service
Constructors
Properties
-
discoveryEvents
→ Stream<
DeviceDiscoveryEvent> -
取得裝置發現事件的串流
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
-
discoverAllDevices(
{Duration scanDuration = const Duration(seconds: 5)}) → Future< Map< String, List< >DiscoveredDevice> > - Discover all types of devices Including Chromecast and DLNA (Renderer and Media Server)
-
dispose(
) → Future< void> - 釋放資源
-
getDeviceKey(
DiscoveredDevice device) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
Map< String, List< result) → Map<DiscoveredDevice> >String, dynamic> - Convert to JSON format result
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited