shutDown

suspend fun shutDown(): AxpResult<Unit>

Terminate the current user session.

Irrespective of the success or failure of the termination operation, the SDK cleanup will be performed. If you wish to use the SDK again after this, you must first call configureSdk.

Return

The result of the termination operation, which can contain an error code if the termination attempt failed.

Throws

if configureSdk has not previously been called.


fun shutDown(responseHandler: ResponseHandler<Unit>)

Terminate the current user session using a callback mechanism.

Irrespective of the success or failure of the termination operation, the SDK cleanup will be performed. If you wish to use the SDK again after this, you must first call configureSdk.

Parameters

responseHandler

A callback function that will be invoked when the session termination operation is complete.

Throws

if configureSdk has not previously been called.