( request: DeviceInventoryRequest, )
| 240 | } |
| 241 | |
| 242 | async 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 | |
| 252 | function isAppleResolutionSelector(selector: { |
| 253 | platform?: PlatformSelector; |
no test coverage detected