Container.FunctionCallTagCallback

  • The Container.FunctionCallTagCallback is a callback provided by the application to execute a custom tag.

  • It has one public method, execute, which takes a function name and a map of parameters.

  • The parameters map can contain various data types including String, Double, Boolean, Integer, Long, Map, or List values.

  • The execute method is called when an event is pushed to the data layer and runs on the same thread as the push call.

public static interface Container.FunctionCallTagCallback

Callback that is provided by the application to execute a custom tag.

Public Method Summary

abstract void
execute(String functionName, Map<StringObject> parameters)
Callback is given the Function Name of the macro and a map of named parameters (the map may contain String, Double, Boolean, Integer, Long, Map, or List values).

Public Methods

public abstract void execute (String functionName, Map<StringObject> parameters)

Callback is given the Function Name of the macro and a map of named parameters (the map may contain String, Double, Boolean, Integer, Long, Map, or List values).

The functionName is the same name by which the Callback was registered. It's provided as a convenience to allow a single Callback to be registered for multiple function call tags.

When application code makes a call to push an event to the data layer, that may cause this callback to execute. The callback will execute on the same thread as the push call.