addEventListener

Registers a listener that is notified whenever a credential lifecycle event occurs.

Return

A Closeable that, when closed, removes the listener.

Parameters

listener

A Consumer that receives Event updates.