commit

abstract fun commit(): Boolean

Commits everything that was prepared in the session. This will launch user's confirmation of installation or uninstallation.

This method allows to re-commit the session when it's not in process of being committed or confirmed, e.g. when confirmation was interrupted with process death.

When committing/confirmation is finished, session is considered completed.

In general, this method should not be used directly, use addStateListener with TerminalStateListener or await() instead.

Return

true if this session has been committed due to this invocation. false if committing/confirmation is in progress or has been already finished, or session preparations hasn't been done beforehand, or session was cancelled.