1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import * as PrivateTypes from './privateTypes';
|
10 | import * as Types from './types';
|
11 | export default class InternetReachability {
|
12 | private _configuration;
|
13 | private _listener;
|
14 | private _isInternetReachable;
|
15 | private _currentInternetReachabilityCheckHandler;
|
16 | private _currentTimeoutHandle;
|
17 | constructor(configuration: Types.NetInfoConfiguration, listener: PrivateTypes.NetInfoInternetReachabilityChangeListener);
|
18 | private _setIsInternetReachable;
|
19 | private _setExpectsConnection;
|
20 | private _checkInternetReachability;
|
21 | update: (state: PrivateTypes.NetInfoNativeModuleState) => void;
|
22 | currentState: () => boolean | null | undefined;
|
23 | tearDown: () => void;
|
24 | }
|