GoogleCastDiscoveryManagerMethodChannelIOS class
iOS-specific implementation of the Google Cast discovery manager.
This class handles the discovery of Google Cast devices on iOS platform using method channels to communicate with the native iOS implementation.
- Implemented types
Constructors
- GoogleCastDiscoveryManagerMethodChannelIOS.new()
- Creates a new instance of the iOS 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
-
handleMethodCall(
MethodCall call) → Future< void> - Handles method calls from the platform channel for testing purposes. This method is visible for testing and allows simulating platform method calls in unit tests.
-
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
-
onDevicesChanged(
List arguments) → void -
Handles device changes for testing purposes.
This method is visible for testing and allows simulating device changes
in unit tests by calling the internal
_onDevicesChanged
method. -
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