addSessionChangedListener

Add a listener that will be notified when the session changes.

This is particularly useful for Java developers and those who prefer not to use Kotlin's SharedFlow for observing session changes.

Parameters

listener

The listener to add.

See also

which is an alternative way of being informed when the session changes. Your app should use only one or the other, not both at the same time.