i/persisters/type-aliases/listener/statuslistener/"><code>StatusListener</code></a> function, and will be called with a reference to the <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a> and the new <a href="/api/persisters/enumerations/lifecycle/status/"><code>Status</code></a>: 0 means now idle, 1 means now loading, and 2 means now saving.</p><section class="s2"><h2>Example</h2><p>This example registers a listener that responds to changes in the state of the <a href="/ap