Skip to content

Commit

Permalink
Return this from start/stop discovery for a more fluent interface
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmomogwai committed Mar 15, 2018
1 parent 8dea2b7 commit 53a9c81
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/mdns.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,16 @@ class Mdns {
}
}

startDiscovery(String serviceType) {
Mdns startDiscovery(String serviceType) {
Map args = new Map();
args["serviceType"] = serviceType;
_channel.invokeMethod("startDiscovery", args);
return this;
}

stopDiscovery(){
Mdns stopDiscovery(){
_channel.invokeMethod("stopDiscovery", new Map());
return this;
}

addService(String serviceName) {
Expand Down

0 comments on commit 53a9c81

Please sign in to comment.