clearTimeout
FunctionClears the timeout with the specified TimeoutID.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
clearTimeout(
timeoutID?):void
Clears the timeout with the specified TimeoutID. If the timeout has already completed or the TimeoutID is invalid, this method does nothing.
Parameters
| Parameter | Type |
|---|---|
timeoutID? | number |
Returns
void
Example
const timeoutId = setTimeout(function() {
print("This will not run.");
}, 1000);
clearTimeout(timeoutId);