sdk-common / com.tomtom.online.sdk.common.jni / JniNativeHandleOwner

JniNativeHandleOwner

interface JniNativeHandleOwner

Properties

EMPTY_HANDLE

static val EMPTY_HANDLE: Long

The default native handle value. Specifies that the native handle was never created on jni site.

Functions

dispose

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.

getNativeHandle

abstract fun getNativeHandle(): Long

Get the native object's unique id, valid until #dispose() is called.

Inheritors

NativeObject

interface NativeObject : JniNativeHandleOwner

A Java counterpart of a native object.