PenSessionFactory
Injectable boundary for lifecycle-owned raw-ink sessions.
Inheritors
Functions
Link copied to clipboard
abstract suspend fun attach(surfaceView: SurfaceView, lifecycleOwner: LifecycleOwner, configuration: RawInkConfiguration, leasePolicy: LeasePolicy): Result<PenSession>
Attaches a raw-ink session to surfaceView and lifecycleOwner.
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.