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

Function readInjectedDeviceInventory

src/core/dispatch-resolve.ts:242–250  ·  view source on GitHub ↗
(
  request: DeviceInventoryRequest,
)

Source from the content-addressed store, hash-verified

240}
241
242async function readInjectedDeviceInventory(
243 request: DeviceInventoryRequest,
244): Promise<DeviceInfo[] | null> {
245 const provider = deviceInventoryProviderScope.getStore();
246 if (!provider) return null;
247 const devices = await provider(request);
248 if (devices === undefined || devices === null) return null;
249 return devices.map((device) => ({ ...device }));
250}
251
252function isAppleResolutionSelector(selector: {
253 platform?: PlatformSelector;

Callers 2

resolveTargetDeviceFunction · 0.85
listDeviceInventoryFunction · 0.85

Calls 1

providerFunction · 0.85

Tested by

no test coverage detected