removeTokenStatusListener
Call the removeTokenStatusListener API to remove the token status listener when the activity gets destroyed.
Note: The corresponding registration methods are
setTokenStatusListenerandaddTokenStatusListener. The listener is matched and removed by object reference. If the specified listener was never added, this method silently does nothing.
Method signature
copy
public void removeTokenStatusListener(@NotNull TokenStatusListener tokenStatusListener)Request parameters
Item | Type | Description | Required |
tokenStatusListener | TokenStatusListener | The token status listener instance to be removed. | Yes |
Response parameters
N/A
Sample
copy
override fun onDestroy() {
super.onDestroy()
ACTapManager.getInstance(application).removeTokenStatusListener(this)
}