Merge in v5 code

This commit is contained in:
Ibby Hadeed
2017-12-28 07:28:44 -05:00
parent d43fe72f7b
commit 0f9c21ab42
255 changed files with 11473 additions and 6501 deletions
+25 -9
View File
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
export interface ZeroconfService {
@@ -65,7 +65,9 @@ export class Zeroconf extends IonicNativePlugin {
* @return {Promise<string>}
*/
@Cordova()
getHostname(): Promise<string> { return; }
getHostname(): Promise<string> {
return;
}
/**
* Publishes a new service.
@@ -77,7 +79,9 @@ export class Zeroconf extends IonicNativePlugin {
* @return {Promise<ZeroconfResult>} Returns a Promise that resolves with the registered service.
*/
@Cordova()
register(type: string, domain: string, name: string, port: number, txtRecord: any): Promise<ZeroconfResult> { return; }
register(type: string, domain: string, name: string, port: number, txtRecord: any): Promise<ZeroconfResult> {
return;
}
/**
* Unregisters a service.
@@ -87,14 +91,18 @@ export class Zeroconf extends IonicNativePlugin {
* @return {Promise<void>}
*/
@Cordova()
unregister(type: string, domain: string, name: string): Promise<void> { return; }
unregister(type: string, domain: string, name: string): Promise<void> {
return;
}
/**
* Unregisters all published services.
* @return {Promise<void>}
*/
@Cordova()
stop(): Promise<void> { return; }
stop(): Promise<void> {
return;
}
/**
* Starts watching for services of the specified type.
@@ -107,7 +115,9 @@ export class Zeroconf extends IonicNativePlugin {
clearFunction: 'unwatch',
clearWithArgs: true
})
watch(type: string, domain: string): Observable<ZeroconfResult> { return; }
watch(type: string, domain: string): Observable<ZeroconfResult> {
return;
}
/**
* Stops watching for services of the specified type.
@@ -116,19 +126,25 @@ export class Zeroconf extends IonicNativePlugin {
* @return {Promise<void>}
*/
@Cordova()
unwatch(type: string, domain: string): Promise<void> { return; }
unwatch(type: string, domain: string): Promise<void> {
return;
}
/**
* Closes the service browser and stops watching.
* @return {Promise<void>}
*/
@Cordova()
close(): Promise<void> { return; }
close(): Promise<void> {
return;
}
/**
* Re-initializes the plugin to clean service & browser state.
* @return {Promise<void>}
*/
@Cordova()
reInit(): Promise<void> { return; }
reInit(): Promise<void> {
return;
}
}