Reset Accumulators¶
The Reset Accumulators action zeros one or more named accumulators from a Launch rule — no app code required.
Screenshot needed
Capture: The Reset Accumulators action UI in Launch, showing one or more accumulator names entered.
What it does¶
When this action fires, Airlock resets the named accumulators to zero and immediately re-publishes Airlock's shared state. Any subsequent rule that reads those accumulator values via a Session Accumulator data element will see 0.
For accumulators configured with User persistence, the reset also clears the stored value from the device's persistent storage — so the counter stays at zero even after the app is restarted.
When to use it¶
| Scenario | Example |
|---|---|
| Reset a session counter at app launch | Zero screenViews each time the app comes to foreground |
| Clear a conversion counter after a purchase | Reset checkoutAttempts once purchase fires successfully |
| Restart a progression tracker | Zero levelCompletions when a new game session begins |
| Test and debug | Manually fire the rule to reset a stuck accumulator during development |
Configuration¶
- Add an Airlock → Reset Accumulators action to a rule.
- In the Accumulator names field, enter one or more accumulator names — one per line.
The names must exactly match the names defined in Extension Configuration → Accumulators. Airlock silently ignores names that don't match a configured accumulator.
Screenshot needed
Capture: The accumulator names field with two names entered.
The Enabled toggle¶
Each action has an Enabled checkbox. Unchecking it disables the action without deleting it — useful for pausing a reset during testing without removing it from the rule.
See also¶
- Extension Configuration → Accumulators — where accumulators are defined and configured
- Session Accumulator data element — how to read an accumulator's value in Launch conditions