destroy

abstract fun destroy(context: Context)

Destroys the CoreClient singleton instance, releasing all associated resources.

After calling this method, any previously returned CoreClient from create is no longer usable. Call create again to obtain a new instance.

Use this when the user logs out or when the app no longer needs messaging functionality.

Parameters

context

An Android Context. The application context is used internally.