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

Function isBluetoothConnected

packages/core/connectivity/index.ios.ts:83–99  ·  view source on GitHub ↗
(keys)

Source from the content-addressed store, hash-verified

81}
82
83function isBluetoothConnected(keys) {
84 if (!keys) {
85 return false;
86 }
87 const allKeys = keys.allKeys;
88 const size = allKeys.count;
89 let isBlueTooth = false;
90 for (let i = 0; i < size; i++) {
91 const key = allKeys.objectAtIndex(i);
92 if (key === 'en4') {
93 isBlueTooth = true;
94 break;
95 }
96 }
97
98 return isBlueTooth;
99}
100
101function isVPNConnected(keys) {
102 if (!keys) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected