CallbackReference

fun interface CallbackReference

A reference to a Mobile Payments SDK Callback that can be cleared to prevent memory leaks. It is recommended to clear the reference any time a lifecycle destroy event occurs (e.g. android.app.Activity.onDestroy or ViewModel.onCleared()). It can also be cleared when the Callback is no longer needed and should not be invoked.

Functions

Link copied to clipboard
abstract fun clear()

Clears the reference to a Mobile Payments SDK Callback. After this method is called, the Callback will no longer be invoked.