2016-04-30 11:56:49 +08:00
|
|
|
import {Plugin, Cordova} from './plugin';
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @name Hotspot
|
|
|
|
* @description
|
|
|
|
* @usage
|
2016-03-25 01:00:18 +08:00
|
|
|
* ```js
|
|
|
|
* import {Hotspot} from 'ionic-native';
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* ```
|
2016-03-14 01:29:59 +08:00
|
|
|
*/
|
|
|
|
@Plugin({
|
|
|
|
plugin: 'cordova-plugin-hotspot',
|
2016-03-25 00:34:02 +08:00
|
|
|
pluginRef: 'cordova.plugins.hotspot',
|
2016-03-26 06:05:13 +08:00
|
|
|
repo: 'https://github.com/hypery2k/cordova-hotspot-plugin',
|
|
|
|
platforms: ['Android']
|
2016-03-14 01:29:59 +08:00
|
|
|
})
|
|
|
|
export class Hotspot {
|
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static isAvailable(): Promise<boolean> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static toggleWifi(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static createHotspot(ssid: string, mode: string, password: string): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static startHotspot(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static configureHotspot(ssid: string, mode: string, password: string): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static stopHotspot(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static isHotspotEnabled(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static getAllHotspotDevices(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-05-06 06:50:28 +08:00
|
|
|
static connectToHotspot(ssid: string, password: string): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-05-06 06:50:28 +08:00
|
|
|
static connectToWifiAuthEncrypt(ssid: string, password: string, authentication, encryption): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-05-06 06:50:28 +08:00
|
|
|
static addWifiNetwork(ssid: string, mode, password): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-05-06 06:50:28 +08:00
|
|
|
static removeWifiNetwork(ssid: string): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static isConnectedToInternet(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static isConnectedToInternetViaWifi(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static isWifiOn(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static isWifiSupported(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static isWifiDirectSupported(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static scanWifi(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static scanWifiByLevel(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-05-06 06:50:28 +08:00
|
|
|
static startPeriodicallyScan(interval: number, duration: number): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static stopPeriodicallyScan(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static getNetConfig(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static getConnectionInfo(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-05-06 06:50:28 +08:00
|
|
|
static pingHost(ip: string): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-05-06 06:50:28 +08:00
|
|
|
static getMacAddressOfHost(ip: string): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-05-06 06:50:28 +08:00
|
|
|
static isDnsLive(ip: string): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-05-06 06:50:28 +08:00
|
|
|
static isPortLife(ip: string): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static isRooted(): Promise<any> {return; }
|
2016-03-14 01:29:59 +08:00
|
|
|
|
2016-03-25 00:34:02 +08:00
|
|
|
}
|