Package-level declarations

Types

Link copied to clipboard
sealed interface ActiveStrokePolicy

Behavior requested when committing while the pen is down.

Link copied to clipboard
data class BrushConfiguration(val style: StrokeStyle = StrokeStyle.FOUNTAIN, val color: Int = 0xff000000.toInt(), val widthPx: Float = 3.0f, val tiltEnabled: Boolean = true, val fastMode: Boolean = false, val minWidthPx: Float = 0.0f, val rotateAngleDegrees: Int = 0, val tiltScale: Float = 0.0f, val directionEnabled: Boolean = false, val maxTouchPressure: Float = 1.0f, val dpi: Float = 320.0f, val displayScaleX: Float = 1.0f, val displayScaleY: Float = 1.0f, val scalePrecision: Float = 1.0f, val brushSpacing: Float = 0.25f, val brushShape: BrushShape = BrushShape.CIRCLE, val brushRatio: Float = 5.0f, val brushAngleDegrees: Float = 0.0f, val pressureSensitivity: Float = 0.0f, val velocitySensitivity: Float = 0.0f, val velocityAmplifier: Float = 0.0f, val velocityIgnoreThreshold: Float = 0.0f, val velocityLowerBound: Float = 0.0f, val velocityUpperBound: Float = 0.0f, val smoothLevel: Float = 0.2f, val startPointLimit: Float = 0.0f, val startLengthLimit: Float = 0.0f, val endVelocitySensitivity: Float = 0.0f, val endThinningRate: Float = 0.0f, val ignorePressure: Float = 0.0f, val dashPattern: DashPattern? = null)

Complete brush configuration shared by raw overlay and native renderer APIs.

Link copied to clipboard

Shape used by the native renderer to stamp brush samples.

Link copied to clipboard
data class CommitOptions(val activeStrokePolicy: ActiveStrokePolicy = ActiveStrokePolicy.WaitForPenUp(), val updateMode: EpdUpdateMode = EpdUpdateMode.HANDWRITING_REPAINT, val refreshTimeout: Duration = 2.seconds)

Controls bitmap commit coordination and refresh behavior.

Link copied to clipboard

Coordinate system used by raw input values.

Link copied to clipboard
data class DashPattern(val onLengthPx: Float, val offLengthPx: Float, val phasePx: Float = 0.0f)

Typed dash geometry retained without exposing the firmware float array.

Link copied to clipboard

Typed E Ink waveform/update mode accepted by KTX refresh APIs.

Link copied to clipboard
data class EraserConfiguration(val widthPx: Float = 20.0f, val sideButtonEnabled: Boolean = true, val style: EraserStyle = EraserStyle.DEFAULT)

Eraser behavior for a raw-ink session.

Link copied to clipboard

Firmware eraser-style identifier.

Link copied to clipboard

Marks renderer features that require explicit opt-in and validation on target firmware.

Link copied to clipboard
data class InkPoint(val xPx: Float, val yPx: Float, val rawPressure: Int, val normalizedPressure: Float, val maxPressure: Int, val tiltX: Int, val tiltY: Int, val eventTimeNanos: Long, val sequence: Long, val tool: InkTool)

Lossless raw input sample normalized for application use.

Link copied to clipboard
data class InkPreview(val point: InkPoint, val phase: InkPreview.Phase)

Latest preview sample for an in-progress or just-completed stroke.

Link copied to clipboard
data class InkStroke(val tool: InkTool, val points: List<InkPoint>, val endedOutsideLimitRegion: Boolean, val bounds: RectF)

Completed raw stroke.

Link copied to clipboard

Physical pen tool associated with an input point or stroke.

Link copied to clipboard

Policy used when another session owns the process-wide raw-ink lease.

Link copied to clipboard

Typed failure returned through Kotlin's Result.

Link copied to clipboard
data class PenEvent(val phase: PenPhase, val point: InkPoint, val outsideLimitRegion: Boolean = false, val forced: Boolean = false)

Immutable, lossless raw event; instances may be retained after collection.

Link copied to clipboard

Native pen renderer selected for a stroke.

Link copied to clipboard

Lifecycle phase of a raw pen event.

Link copied to clipboard

Firmware handwriting state associated with a view.

Link copied to clipboard
data class RawInkConfiguration(val brush: BrushConfiguration = BrushConfiguration(), val eraser: EraserConfiguration = EraserConfiguration(), val limitRegions: List<Rect> = emptyList(), val excludeRegions: List<Rect> = emptyList(), val regionMode: RegionMode = RegionMode.MULTI_REGION, val maxPointsPerStroke: Int)

Immutable configuration applied whenever a raw-ink session starts or resumes.

Link copied to clipboard
sealed interface RefreshScope

Portion of a view to refresh.

Link copied to clipboard

Firmware interpretation of raw-ink limit and exclusion regions.

Link copied to clipboard

Firmware stroke style used for overlay rendering.

Link copied to clipboard

Unit represented by raw tilt values.

Link copied to clipboard

Clock used by raw input timestamps.

Link copied to clipboard

Whether firmware turbo rendering is enabled.