Protocols
The following protocols are available globally.
-
Protocol representing a Collector. It is a generic protocol that defines the structure for creating different types of collectors. It inherits from the Action protocol and conforms to Identifiable and Sendable protocols.
See moreDeclaration
Swift
public protocol Collector<T> : Action, IdentifiableParameters
TThe type of the payload that the collector will handle.
idA unique identifier for the collector.
payload()Returns the payload of type T. When payload returns nil, the field will not be posted to server.
-
An interface that should be implemented by classes that need to be aware of the ContinueNode. The continueNode will be injected to the classes that implement this interface.
See moreDeclaration
Swift
public protocol ContinueNodeAware -
A protocol that defines a type for DaVinciAware. Exposes the davinci property that can be set. This protocol is used to inject the DaVinci instance into Collectors that need it.
See moreDeclaration
Swift
public protocol DaVinciAware -
A protocol representing a self submittable [Collector].
See moreDeclaration
Swift
public protocol Submittable -
A protocol for validating objects. This protocol defines a method to validate an object and return an array of validation errors. The
See morevalidatemethod should be implemented by conforming types to perform the validation logic.Declaration
Swift
public protocol Validator
View on GitHub
Protocols Reference