MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / isRealDevice

Function isRealDevice

packages/core/utils/native-helper.ios.ts:284–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282}
283
284export function isRealDevice() {
285 try {
286 if (NSProcessInfo.processInfo.environment.valueForKey('SIMULATOR_DEVICE_NAME')) {
287 return false;
288 }
289 return true;
290 } catch (e) {
291 return true;
292 }
293}
294
295function printCGRect(rect: CGRect) {
296 if (rect) {

Calls

no outgoing calls

Tested by

no test coverage detected