setCompleted

fun setCompleted(error: Throwable? = null)

Sets the model to State.COMPLETED

Parameters

error

pass a Throwable if the presentation failed, null if successful.