GoogleCastDiscoveryManagerPlatformInterface class abstract
Platform interface for Google Cast device discovery functionality.
This abstract class defines the contract that platform-specific implementations must follow. It manages the device discovery process and maintains a collection of currently discovered Google Cast devices.
The framework automatically starts the discovery process when the application moves to the foreground and suspends it when the application moves to the background. It is generally not necessary for the application to manually start and stop discovery, except as an optimization measure to reduce network traffic and CPU utilization.
Based on the Google Cast iOS SDK's GCKDiscoveryManager class.
- Implemented types
- Implementers
Constructors
Properties
-
devices
→ List<
GoogleCastDevice> -
Returns the list of currently discovered devices.
no setter
-
devicesStream
→ Stream<
List< GoogleCastDevice> > -
Returns a stream of the currently discovered devices.
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
-
isDiscoveryActiveForDeviceCategory(
String deviceCategory) → Future< bool> - Tests whether discovery is currently active for the given device category.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startDiscovery(
) → Future< void> - Starts the discovery process. strongly recommended to call this method when the application is show cast devices dialog because the battery consumption is high when the discovery process is running.
-
stopDiscovery(
) → Future< void> - Stops the discovery process. strongly recommended to call this method when the application close the show cast devices dialog for reduce battery consumption.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited