init

suspend fun init(activity: Activity)

Initializes the session.

Throws

When a termination status code is sent during the session.

If data transport fails.

CancellationException is caught and ignored, as it is handled by resetTimeout().