ImageCollector

A display-only Collector that surfaces an image in a DaVinci authentication flow. It carries no user input — id returns key and the collector never contributes a value to the form submission.

{
"type": "IMAGE",
"key": "heroImage",
"description": "Alt text",
"imageUrl": "https://cdn.example.com/image.png",
"hyperlinkUrl": "https://example.com/install"
}

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Accessibility / alt text for the image.

Link copied to clipboard

Optional URL to open when the image is tapped. null when not provided.

Link copied to clipboard

URL of the image to display.

Link copied to clipboard
var key: String

Unique field identifier within the form.

Functions

Link copied to clipboard
open override fun id(): String
Link copied to clipboard
open override fun init(input: JsonObject): ImageCollector
Link copied to clipboard
fun JsonObject.stringOrNull(field: String): String?

Helper function to safely extract a string from a JsonObject by key, returning null if the key is absent or not a string.