Package-level declarations

Types

Link copied to clipboard
data class CommitReceipt(val surfaceGeneration: Long, val surfacePost: SurfacePostEvidence, val overlaySynchronization: OverlaySynchronizationEvidence, val refresh: RefreshReceipt, val configurationRestoration: ConfigurationRestorationEvidence, val warnings: Set<CommitWarning>)

Evidence collected while committing content beneath the raw-ink overlay.

Link copied to clipboard

Recoverable limitation encountered during a bitmap commit.

Link copied to clipboard

Evidence that raw-ink configuration was restored after a commit.

Link copied to clipboard

Mechanism used to synchronize firmware handwriting overlay contents.

Link copied to clipboard
interface PenSession : Closeable

Injectable application-facing pen-session contract.

Link copied to clipboard

Exclusive, generation-aware owner of the firmware raw-ink overlay.

Link copied to clipboard
sealed interface RawInkSessionState

Lifecycle state of a raw-ink session.

Link copied to clipboard

Evidence that a committed bitmap reached the expected surface generation.

Link copied to clipboard

Reason a raw-ink session is not currently accepting input.

Functions

Link copied to clipboard
suspend fun <T> withRawInkSession(surfaceView: SurfaceView, configuration: RawInkConfiguration = RawInkConfiguration(), leasePolicy: LeasePolicy = LeasePolicy.FAIL_FAST, block: suspend RawInkSession.() -> T): Result<T>

Opens a session, runs block, and waits for cleanup before returning.