clear

fun clear()

Clears the reference to the activity.

This method should be called in the onDestroy method of the calling activity to prevent memory leaks. It does not tear down AIDL: subsequent AIDL calls still work via the application context. For CommunicationType.INTENT, call initialize again with a live Activity before the next operation.

Do not use this method as a substitute for logout, and do not call it on every minimize (onPause/onStop) unless you are ready to initialize again.