Input

interface Input

Defines the legal input model that is available to be read from by the processor.

Types

Prompt
Link copied to clipboard
class Prompt(id: String, message: String)
Defines the content in the form of a localized and HTML formatted message to prompt a user for a legal agreement.
RequestUpdate
Link copied to clipboard
enum RequestUpdate : Enum<LegalProcessor.Input.RequestUpdate>
Specifies when a LegalProcessor.Input implementation should re-prompt user to get a new response.
Result
Link copied to clipboard
sealed class Result
Represents all the available responses to a prompt produced by the LegalProcessor.Input.

Functions

subscribeTo
Link copied to clipboard
abstract fun subscribeTo(prompt: LegalProcessor.Input.Prompt, requestUpdate: LegalProcessor.Input.RequestUpdate, onResult: Consumer<LegalProcessor.Input.Result>): Closeable
Subscribes to the provided onResult to be notified when a new Result is available for this input.