ChromecastDlnaFinder class

Main class for Chromecast and DLNA device discovery

Constructors

ChromecastDlnaFinder.new({AppLogger? logger})
Allow external injection of logger, default to AppLogger singleton

Properties

deviceEvents Stream<DeviceDiscoveryEvent>?
Get device discovery event stream Can be listened to in Flutter UI for real-time device discovery events
no setter
hashCode int
The hash code for this object.
no setterinherited
isMobilePlatform bool
Check if running on mobile platform
no setter
isSupportedPlatform bool
Check if running on supported platform (not web)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

configureLogger({Set<LoggerOutput> outputs = const {LoggerOutput.stderr}, AppLogLevel minLevel = AppLogLevel.info}) Future<void>
Configure logging system outputs log output channels minLevel Minimum log level
dispose() Future<void>
Release resources
findDevices({Duration scanDuration = const Duration(seconds: 5)}) Future<Map<String, List<DiscoveredDevice>>>
Discover all devices and return raw data model
findDevicesAsJson({Duration scanDuration = const Duration(seconds: 5)}) Future<Map<String, dynamic>>
Discover all devices and return JSON format data
findDevicesAsJsonString({Duration scanDuration = const Duration(seconds: 5), bool pretty = false}) Future<String>
Discover all devices and return JSON string
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited