reset

fun reset(source: PresentmentSource, preselectedDocuments: List<Document>, showDocumentChooser: DocumentChooserData? = null)

Resets the model.

Should be called by the mechanism when presentment begins.

This moves the model into the State.Reset state.

Parameters

source

the source of truth to use for presentment.

preselectedDocuments

a list of documents that are preselected.

showDocumentChooser

if not null, shows a document chooser. This is for applications of PresentmentModel when e.g. launching an activity which the user can bring up from a shortcut or hot-key e.g. double-clicking the power button.