abstract fun dispose(): Unit
Remove all internal references, clear memory, invalidate the native handle. Has to be called when the native object is no longer needed.