init

protected open override fun init(name: String, value: JsonElement)

Initializes callback properties based on server-provided configuration.

This method is called automatically by the Journey framework during callback initialization to configure the callback based on the server's requirements for device profiling. It parses JSON configuration values and sets the appropriate internal state.

Supported Configuration Properties:

  • metadata: Boolean value enabling/disabling metadata collection

  • location: Boolean value enabling/disabling location collection

  • message: String value containing contextual information

Parameters

name

The name of the property being initialized

value

The JSON value containing the property configuration

Throws

if the property value cannot be parsed correctly