onyxsdk-pen

Artifact:

com.onyx.android.sdk:onyxsdk-pen:1.4.12

Root package:

com.onyx.android.sdk.pen

Last release:

February 2026

Provides hardware-accelerated stylus input for Boox devices. Routes pen events directly from the Wacom digitizer driver, bypassing the Android MotionEvent stack for sub-20 ms latency and native A2 e-ink waveform rendering during stroke.

Class

Responsibility

Package

TouchHelper

Primary entry point. Creates and manages the hardware pen input session for a single view: region setup, lifecycle, stroke appearance, render/input toggles.

…sdk.pen

RawInputCallback

Abstract callback. Implement to receive per-point move events, completed stroke lists, eraser events, and pen hover.

…sdk.pen

TouchPointList

Ordered list of TouchPoint objects representing one complete stroke. Supports geometric transforms and serialisation.

…sdk.pen.data

StrokeStyle

Integer constants for the SDK’s built-in stroke styles (pencil, fountain, marker, brush, charcoal, dash).

…sdk.pen.style

NeoPenConfig

Configuration object for the native NeoPen renderer: pen type, colour, width, tilt, and pressure curve.

…sdk.pen

MultiViewTouchHelper

Manages pen input across multiple view regions simultaneously. Routes callbacks to the correct LimitViewInfo by pen position.

…sdk.pen.multiview

LimitViewInfo

Associates a View with a RawInputCallback and its screen-absolute limit rects. One per drawing surface under MultiViewTouchHelper.

…sdk.pen.multiview