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

Function _reachabilityCallback

packages/core/connectivity/index.ios.ts:124–129  ·  view source on GitHub ↗
(target: any, flags: number, info: any)

Source from the content-addressed store, hash-verified

122
123// Start/Stop Monitoring
124function _reachabilityCallback(target: any, flags: number, info: any) {
125 if (_connectionTypeChangedCallback) {
126 const newConnectionType = _getConnectionTypeFromFlags(flags);
127 _connectionTypeChangedCallback(newConnectionType);
128 }
129}
130
131const _reachabilityCallbackFunctionRef = new interop.FunctionReference(_reachabilityCallback);
132

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected