MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / _getReachabilityFlags

Function _getReachabilityFlags

packages/core/connectivity/index.ios.ts:24–33  ·  view source on GitHub ↗
(host?: string)

Source from the content-addressed store, hash-verified

22}
23
24function _getReachabilityFlags(host?: string): number {
25 const reachability = _createReachability(host);
26 const flagsRef = new interop.Reference<number>();
27 const gotFlags = SCNetworkReachabilityGetFlags(reachability, flagsRef);
28 if (!gotFlags) {
29 return null;
30 }
31
32 return flagsRef.value;
33}
34
35function _getConnectionType(host?: string): number {
36 const flags = _getReachabilityFlags(host);

Callers 1

_getConnectionTypeFunction · 0.85

Calls 1

_createReachabilityFunction · 0.85

Tested by

no test coverage detected