Server class abstract

Handle to a Ouisync service.

Constructors

Server({required String configPath, String? debugLabel})
Server.create({required String configPath, String? debugLabel})
factory

Properties

configPath → String
final
debugLabel → String?
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

initLog() → Future<void>
Initializes logging in the underlying Ouisync service.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify({String? channelName, String? contentTitle, String? contentText}) → Future<void>
Setup notification indicating the server is running. Currently this has effect only on Android (where the server is backed by foreground service (https://developer.android.com/develop/background-work/services/fgs)).
start() → Future<void>
Starts the server. After this function completes the server is ready to accept client connections.
stop() → Future<void>
Stops the server.
toString() → String
A string representation of this object.
inherited

Operators

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