mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-27 21:41:25 +08:00
feat(network): declare connection enum with strings(#3630)
This commit is contained in:
parent
8dcb6be4ea
commit
d698d5985b
@ -5,14 +5,14 @@ import { Observable, merge } from 'rxjs';
|
|||||||
declare const navigator: any;
|
declare const navigator: any;
|
||||||
|
|
||||||
export enum Connection {
|
export enum Connection {
|
||||||
UNKNOWN = 0,
|
UNKNOWN = 'unknown',
|
||||||
ETHERNET,
|
ETHERNET = 'ethernet',
|
||||||
WIFI,
|
WIFI = 'wifi',
|
||||||
CELL_2G,
|
CELL_2G = '2g',
|
||||||
CELL_3G,
|
CELL_3G = '3g',
|
||||||
CELL_4G,
|
CELL_4G = '4g',
|
||||||
CELL,
|
CELL = 'cellular',
|
||||||
NONE,
|
NONE = 'none',
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user