NeoPenNative

JNI facade compatible with onyxsdk-pennative:1.0.4.

The native implementation is owned by this project and also exports the legacy com.onyx.android.sdk.pen entry points from the same renderer core.

Functions

Link copied to clipboard

Creates a native logger handle and selects the SDK default log level.

Link copied to clipboard
fun createPen(penType: Int, config: PenConfig): Long

Creates a renderer for penType using a snapshot of config.

Link copied to clipboard
fun destroyPen(pen: Long)

Releases pen. Destroying an unknown or already released handle is a no-op.

Link copied to clipboard
fun onPenDown(pen: Long, pointArray: DoubleArray, repaint: Boolean): PenInkResult?

Starts a stroke for pen.

Link copied to clipboard
fun onPenMove(pen: Long, pointArray: DoubleArray, predictionArray: DoubleArray?, repaint: Boolean): PenInkResult?

Extends the active stroke for pen.

Link copied to clipboard
fun onPenUp(pen: Long, pointArray: DoubleArray, repaint: Boolean): PenInkResult?

Finishes the active stroke for pen and resets its per-stroke state.

Link copied to clipboard
fun registerLogger(logger: Long)

Makes logger the process-wide logger used by the native renderer.

Link copied to clipboard
fun setLogLevel(level: Int)

Sets the vendor-compatible integer logging level for native renderer messages.