Collector

interface Collector<T> : Action

Interface representing a Collector. A Collector is a type of Action that can be initialized with a JsonObject.

Functions

Link copied to clipboard
open fun id(): String

Function to get the id of the field collector.

Link copied to clipboard
open fun init(input: JsonElement)

Initializes the default values of the Collector with the given input. The formData.value.{key} is used to lookup the default value.

abstract fun init(input: JsonObject): Collector<T>

Initializes the Collector with the given input.

Link copied to clipboard
open fun payload(): T?

Function to get the payload of the field collector that will post to the server. When the value is null, the field will not be posted to the server.