DefaultPenSessionFactory

Functions

Link copied to clipboard
open suspend override fun attach(surfaceView: SurfaceView, lifecycleOwner: LifecycleOwner, configuration: RawInkConfiguration, leasePolicy: LeasePolicy): Result<PenSession>

Delegates attachment to RawInkSession.attach.

Link copied to clipboard
suspend fun PenSessionFactory.attach(surfaceView: SurfaceView, lifecycleOwner: LifecycleOwner, configuration: RawInkConfiguration = RawInkConfiguration()): Result<PenSession>

Attaches with fail-fast process ownership unless the caller requests another lease policy.