Clearing SDK instance

In order to clear the resources taken up by SDK, you can use the method TruecallerSDK.clear(); You can call this method when the activity/fragment in which you have initialised the SDK is getting killed/destroyed.

For example :

Copy

@Override
protected void onDestroy() {
   super.onDestroy();
   TruecallerSDK.clear();
}

Last updated