bind

Launches the session and handles its lifecycle. Returns a Binder to bind terminal state listeners to the session.

If you don't want to receive terminal state updates, but instead just to launch the session, you can use the function like this:

Session.TerminalStateListener.bind(session, subscriptions);

Return

Binder

Parameters

session

a Session to bind listeners to.

subscriptionContainer

a subscription bag, session state subscription will be added to it.