diff --git a/src/plugins/hotspot.ts b/src/plugins/hotspot.ts new file mode 100644 index 000000000..89106b1be --- /dev/null +++ b/src/plugins/hotspot.ts @@ -0,0 +1,100 @@ +import {Plugin, Cordova} from './plugin' + +/** + * @name Hotspot + * @description + * @platforms Android + * @usage + */ +@Plugin({ + plugin: 'cordova-plugin-hotspot', + pluginRef: 'cordova.plugnis.hotspot', + repo: 'https://github.com/hypery2k/cordova-hotspot-plugin' +}) +export class Hotspot { + + @Cordova() + static isAvailable() : Promise {return} + + @Cordova() + static toggleWifi() : Promise {return} + + @Cordova() + static createHotspot(ssid : string, mode : string, password : string) : Promise {return} + + @Cordova() + static startHotspot() : Promise {return} + + @Cordova() + static configureHotspot(ssid : string, mode : string, password : string) : Promise {return} + + @Cordova() + static stopHotspot() : Promise {return} + + @Cordova() + static isHotspotEnabled() : Promise {return} + + @Cordova() + static getAllHotspotDevices() : Promise {return} + + @Cordova() + static connectToHotspot(ssid, password) : Promise {return} + + @Cordova() + static connectToWifiAuthEncrypt(ssid, password, authentication, encryption) : Promise {return} + + @Cordova() + static addWifiNetwork(ssid, mode, password) : Promise {return} + + @Cordova() + static removeWifiNetwork(ssid) : Promise {return} + + @Cordova() + static isConnectedToInternet() : Promise {return} + + @Cordova() + static isConnectedToInternetViaWifi() : Promise {return} + + @Cordova() + static isWifiOn() : Promise {return} + + @Cordova() + static isWifiSupported() : Promise {return} + + @Cordova() + static isWifiDirectSupported() : Promise {return} + + @Cordova() + static scanWifi() : Promise {return} + + @Cordova() + static scanWifiByLevel() : Promise {return} + + @Cordova() + static startPeriodicallyScan(interval, duration) : Promise {return} + + @Cordova() + static stopPeriodicallyScan() : Promise {return} + + @Cordova() + static getNetConfig() : Promise {return} + + @Cordova() + static getConnectionInfo() : Promise {return} + + @Cordova() + static pingHost(ip) : Promise {return} + + @Cordova() + static getMacAddressOfHost(ip) : Promise {return} + + @Cordova() + static isDnsLive(ip) : Promise {return} + + @Cordova() + static isPortLife(ip) : Promise {return} + + @Cordova() + static isRooted() : Promise {return} + +} \ No newline at end of file