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

Function getProviderDeviceInteractor

src/provider-device-runtime.ts:83–90  ·  view source on GitHub ↗
(device: DeviceInfo)

Source from the content-addressed store, hash-verified

81}
82
83export function getProviderDeviceInteractor(device: DeviceInfo): Interactor | undefined {
84 for (const runtime of getActiveProviderDeviceRuntimes()) {
85 if (!runtime.ownsDevice(device)) continue;
86 const interactor = runtime.getInteractor(device);
87 if (interactor) return interactor;
88 }
89 return undefined;
90}
91
92export function isActiveProviderDevice(device: DeviceInfo): boolean {
93 return getActiveProviderDeviceRuntimes().some((runtime) => runtime.ownsDevice(device));

Callers 2

getInteractorFunction · 0.90

Calls 3

ownsDeviceMethod · 0.45
getInteractorMethod · 0.45

Tested by 1