AvahiBonsoirDiscovery class
Discovers a given service type on the network.
- Inheritance
-
- Object
- AvahiBonsoirAction<
BonsoirDiscoveryEvent> - AvahiBonsoirDiscovery
Constructors
- AvahiBonsoirDiscovery({required String type, required bool printLogs})
- Creates a new Avahi Bonsoir discovery instance.
Properties
- action → String
-
A string describing the current action.
finalinherited
- busClient → DBusClient
-
The DBus client instance.
finalinherited
-
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 setteroverride
- 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 setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The service type to discover.
final
Methods
-
cancelSubscriptions(
) → void -
Cancels all subscriptions.
inherited
-
log(
String message) → void -
Prints a message to the console, if enabled.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
AvahiBonsoirError error) → void -
Triggered when an error occurs.
inherited
-
onEvent(
BonsoirDiscoveryEvent event, [String? message]) → void -
Triggered when an event occurs.
inherited
-
registerSubscription(
StreamSubscription subscription) → void -
Registers a subscription.
inherited
-
resolveService(
BonsoirService service) → Future< void> - Allows to resolve a service.
-
start(
) → Future< void> -
This starts the required action (eg. discovery, or broadcast).
override
-
stop(
) → Future< void> -
This stops the action (eg. stops discovery or broadcast).
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited