GoogleCastDiscoveryManagerMethodChannelAndroid class
Android-specific implementation of the Google Cast discovery manager.
This class handles the discovery of Google Cast devices on Android platform using method channels to communicate with the native Android implementation.
- Implemented types
Constructors
- GoogleCastDiscoveryManagerMethodChannelAndroid.new()
- Creates a new instance of the Android discovery manager.
Properties
-
devices
→ List<
GoogleCastDevice> -
Returns the list of currently discovered devices.
no setteroverride
-
devicesStream
→ Stream<
List< GoogleCastDevice> > -
Returns a stream of the currently discovered devices.
no setteroverride
- 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.
override
-
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.
override
-
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.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited