setCompleted

fun setCompleted(error: Throwable?, telemetry: PresentmentTelemetry? = null)

Should be called by the mechanism when the transaction is complete.

This moves the model into the State.Completed state.

Parameters

error

if the transaction fails, this should be set to a non-null value.

telemetry

optional telemetry collected during the presentment session.