MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / clearCaptureStatusLater

Function clearCaptureStatusLater

packages/client/src/app/AppShell.tsx:2050–2060  ·  view source on GitHub ↗
(label: string, delayMs = 1600)

Source from the content-addressed store, hash-verified

2048 }
2049
2050 function clearCaptureStatusLater(label: string, delayMs = 1600) {
2051 if (captureStatusTimeoutRef.current) {
2052 window.clearTimeout(captureStatusTimeoutRef.current);
2053 }
2054 captureStatusTimeoutRef.current = window.setTimeout(() => {
2055 captureStatusTimeoutRef.current = 0;
2056 setCaptureStatus((current) =>
2057 current?.label === label ? null : current,
2058 );
2059 }, delayMs);
2060 }
2061
2062 async function downloadSimulatorScreenshot(withBezel: boolean) {
2063 if (!selectedSimulator) {

Callers 2

toggleSimulatorRecordingFunction · 0.85

Calls 2

clearTimeoutMethod · 0.80
setTimeoutMethod · 0.80

Tested by

no test coverage detected