addOnFailureListener
fun addOnFailureListener(listener: Session.TerminalStateListener.OnFailureListener<F>): Session.TerminalStateListener.Binder<F>
Adds a listener which will be invoked when a Session fails.
Replaces previously added OnFailureListener.
If session has already failed by the time this function is called, the listener will be invoked immediately in the calling thread.
Return
this Binder to allow chaining.