Объявление : Все некоммерческие проекты, зарегистрированные для использования Earth Engine до
15 апреля 2025 года, должны
подтвердить некоммерческое право на сохранение доступа к Earth Engine.
ui.util.setInterval
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Повторно вызывает функцию с фиксированной задержкой между каждым вызовом.
Возвращает ключ, который можно передать в ui.util.clearTimeout для удаления тайм-аута.
Использование | Возврат | ui.util.setInterval(func, delay) | Число |
Аргумент | Тип | Подробности | func | Функция | Функция, которая будет запущена после указанной задержки. |
delay | Число | Время задержки таймера в миллисекундах (тысячных долях секунды) между выполнениями указанной функции. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-24 UTC.
[null,null,["Последнее обновление: 2025-07-24 UTC."],[[["\u003cp\u003e\u003ccode\u003eui.util.setInterval\u003c/code\u003e repeatedly executes a provided function at a fixed time interval.\u003c/p\u003e\n"],["\u003cp\u003eIt returns a unique key that can be used with \u003ccode\u003eui.util.clearTimeout\u003c/code\u003e to cancel the interval timer.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edelay\u003c/code\u003e argument specifies the time in milliseconds between each function execution.\u003c/p\u003e\n"]]],["The core content describes the `ui.util.setInterval` function, which repeatedly executes a provided function (`func`) at a specified time interval (`delay`, in milliseconds). It returns a numerical key. This key is then usable with `ui.util.clearTimeout` to cancel the recurring function calls. The function establishes a recurring timer with the specified delay between executions.\n"],null,["# ui.util.setInterval\n\n\u003cbr /\u003e\n\nRepeatedly calls a function with a fixed time delay between each call.\n\n\u003cbr /\u003e\n\nReturns a key that can be passed to ui.util.clearTimeout to remove the timeout.\n\n| Usage | Returns |\n|------------------------------------|---------|\n| `ui.util.setInterval(func, delay)` | Number |\n\n| Argument | Type | Details |\n|----------|----------|------------------------------------------------------------------------------------------------------------------------------|\n| `func` | Function | The function to run after the specified delay. |\n| `delay` | Number | The time, in milliseconds (thousandths of a second), the timer should delay in between executions of the specified function. |"]]