MethodChannelBonsoirDiscoveryAction class

Implementation of MethodChannelBonsoirEvents for the discovery action.

Inheritance
Mixed in types

Constructors

MethodChannelBonsoirDiscoveryAction({required String type, bool printLogs = kDebugMode})
Creates a new method channel action instance for the discovery action.

Properties

eventStream Stream<BonsoirDiscoveryEvent>?
The event stream. Subscribe to it to receive this instance updates.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isReady bool
This returns whether the platform is ready for this action.
no setterinherited
isStopped bool
This returns whether the platform has discarded this action.
no setterinherited
printLogs bool
Whether to print logs.
finalinherited
ready Future<void>
The ready getter, that returns when the platform is ready for the operation requested. Await this method to know when the plugin will be ready.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The service type.
final

Methods

invokeMethod<R>(String method, [Map<String, dynamic>? arguments]) Future<R?>
Invokes a method on the method channel.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveService(BonsoirService service) Future<void>
Allows to resolve a service.
override
start() Future<void>
This starts the required action (eg. discovery, or broadcast).
inherited
stop() Future<void>
This stops the action (eg. stops discovery or broadcast).
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited
transformPlatformEvent(dynamic event) BonsoirDiscoveryEvent
Transforms the stream data to a T.
override

Operators

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