CleanerService

class CleanerService

This class provides API to track the life time of the Java object and invoke callback to clean the native peer

Functions

register
Link copied to clipboard
open fun register(@NonNull obj: Any, @NonNull nativeCleaner: Runnable)
Register object whose life cycle is tracked to perform cleanup action