UNPKG

889 BTypeScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @format
8 */
9import * as PrivateTypes from './privateTypes';
10import * as Types from './types';
11export 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}