close

open fun close()

Close the native pointer.

After closing, the pointer is reset to null and any operation will throw NullPointerException.