1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import * as Types from './types';
|
10 | export default class State {
|
11 | private _nativeEventSubscription;
|
12 | private _subscriptions;
|
13 | private _latestState;
|
14 | private _internetReachability;
|
15 | constructor(configuration: Types.NetInfoConfiguration);
|
16 | private _handleNativeStateUpdate;
|
17 | private _handleInternetReachabilityUpdate;
|
18 | _fetchCurrentState: (requestedInterface?: string | undefined) => Promise<Types.NetInfoState>;
|
19 | private _convertState;
|
20 | latest: (requestedInterface?: string | undefined) => Promise<Types.NetInfoState>;
|
21 | add: (handler: Types.NetInfoChangeHandler) => void;
|
22 | remove: (handler: Types.NetInfoChangeHandler) => void;
|
23 | tearDown: () => void;
|
24 | }
|