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

Function assertAlternateClickSupported

src/core/dispatch-interactions.ts:269–287  ·  view source on GitHub ↗
(
  device: DeviceInfo,
  button: ClickButton,
  context: DispatchContext | undefined,
)

Source from the content-addressed store, hash-verified

267}
268
269function assertAlternateClickSupported(
270 device: DeviceInfo,
271 button: ClickButton,
272 context: DispatchContext | undefined,
273): void {
274 const validationError = getClickButtonValidationError({
275 commandLabel: 'click',
276 platform: publicPlatformString(device),
277 button,
278 count: context?.count,
279 intervalMs: context?.intervalMs,
280 holdMs: context?.holdMs,
281 jitterPx: context?.jitterPx,
282 doubleTap: context?.doubleTap,
283 });
284 if (validationError) {
285 throw validationError;
286 }
287}
288
289async function runLinuxAlternateClick(
290 x: number,

Callers 1

handleAlternateClickFunction · 0.85

Calls 2

publicPlatformStringFunction · 0.90

Tested by

no test coverage detected