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

Function isTvOsDevice

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

Source from the content-addressed store, hash-verified

129 * so the `isApplePlatform` gate is load-bearing (do not widen it to any TV target).
130 */
131export function isTvOsDevice(device: Pick<DeviceInfo, 'platform' | 'target'>): boolean {
132 return isApplePlatform(device.platform) && device.target === 'tv';
133}
134
135export function isPlatform(value: unknown): value is Platform {
136 // Internal device-platform membership derived from the canonical PLATFORMS tuple.

Callers 8

device.test.tsFile · 0.90
buildPressSequenceStepsFunction · 0.90
buildSwipeSequenceStepsFunction · 0.90
resolveDeviceAppleOsFunction · 0.90
createAppleInteractorFunction · 0.90
iosDragCommandFunction · 0.90
runAppleScrollFunction · 0.90

Calls 1

isApplePlatformFunction · 0.85

Tested by

no test coverage detected