MCPcopy Index your code
hub / github.com/callstack/agent-device / isMacOs

Function isMacOs

src/kernel/device.ts:68–73  ·  view source on GitHub ↗
(device: Pick<DeviceInfo, 'platform' | 'appleOs'>)

Source from the content-addressed store, hash-verified

66 * is authoritative.
67 */
68export function isMacOs(device: Pick<DeviceInfo, 'platform' | 'appleOs'>): boolean {
69 // The `appleOs` discriminant is authoritative for discovered devices; the legacy
70 // leaf `platform: 'macos'` (persisted pre-collapse records, or synthetic
71 // leaf-string devices) is still honored via the cast for back-compat.
72 return device.appleOs === 'macos' || (device.platform as string) === 'macos';
73}
74
75/**
76 * The touch iOS family: every Apple OS except the macOS desktop host

Callers 15

readAppEventUrlTemplateFunction · 0.90
handlePressCommandFunction · 0.90
handlePinchCommandFunction · 0.90
handleReadCommandFunction · 0.90
isNotMacOsFunction · 0.90
isMacOsOrAppleSimulatorFunction · 0.90
isNotMacOsFunction · 0.90
isMacOsOrAppleSimulatorFunction · 0.90

Calls

no outgoing calls

Tested by 10

isNotMacOsFunction · 0.72
isMacOsOrAppleSimulatorFunction · 0.72
isNotMacOsFunction · 0.72
isMacOsOrAppleSimulatorFunction · 0.72
supportsHostAudioProbeFunction · 0.72
resolveLogBackendByHandFunction · 0.72