BonsoirDiscoveryAction class
Implementation of MethodChannelBonsoirEvents
for the discovery action.
- Inheritance
-
- Object
- BonsoirAction<
BonsoirDiscoveryEvent> - MethodChannelBonsoirAction<
BonsoirDiscoveryEvent> - BonsoirDiscoveryAction
Constructors
- BonsoirDiscoveryAction({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
-
Returns whether this instance can be used.
no setterinherited
- isStopped → bool
-
Returns whether this instance has been stopped.
no setterinherited
- printLogs → bool
-
Whether to print logs.
finalinherited
-
ready
→ Future<
void> -
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
) → Future< void> -
Starts to do either a discover or a broadcast.
inherited
-
stop(
) → Future< void> -
Stops the current discover or broadcast.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this Bonsoir class to a JSON map.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
transformPlatformEvent(
dynamic event) → BonsoirDiscoveryEvent -
Transforms a platform event to a discovery event.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited