Created
October 12, 2016 07:12
-
-
Save NeoLSN/b8a598dd3bcdbef9115d6d84d6ae6049 to your computer and use it in GitHub Desktop.
ionic-native plugin file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Cordova, Plugin } from 'ionic-native'; | |
import { Observable } from 'rxjs/Observable'; | |
export interface DnssdRecord { | |
action: string; | |
service: BonjourService; | |
} | |
export interface BonjourService { | |
domain: string; | |
port: number; | |
name: string; | |
hostname: string; | |
type: string; | |
txtRecord; | |
addresses: Array<string>; | |
} | |
@Plugin({ | |
pluginRef: 'cordova.plugins.zeroconf', | |
plugin: 'cordova-plugin-zeroconf', | |
repo: 'https://github.com/becvert/cordova-plugin-zeroconf' | |
}) | |
export class Dnssd { | |
@Cordova() | |
static register(type: string, domain: string, name: string, port: number, props): Promise<DnssdRecord> { return; } | |
@Cordova() | |
static unregister(type: string, domain: string, name: string): Promise<any> { return; } | |
@Cordova() | |
static stop(): Promise<any> { return; } | |
@Cordova({ | |
observable: true, | |
clearFunction: 'close', | |
clearWithArgs: true | |
}) | |
static watch(type: string, domain: string): Observable<DnssdRecord> { return; } | |
@Cordova() | |
static unwatch(type: string, domain: string): Promise<any> { return; } | |
@Cordova() | |
static close(): Promise<any> { return; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment