requestTermination

Request SDK to terminate.

This method tells the SDK to end all calls and unregister all accounts. It should be called on exit.

This method is asynchronous. The application can terminate after isTerminated returns true. You should employ some reasonable timeout while waiting for that.

This method does not exit the process. It is your responsibility to do so. You can use cz.acrobits.libsoftphone.callback.OnTerminatedCallback to help you with that.

The SDK may respawn if the application wishes to not proceed with the termination.

Return

Handle of the request that can be used to cancel the termination.

Parameters

timeoutMillis

Timeout in milliseconds in order let SDK teardown all internal processes gracefully.

callback

Callback called when the SDK is terminated.