AI-generated Key Takeaways
-
Container.FunctionCallMacroCallback is a callback provided by the application to calculate the value of a custom macro.
-
The getValue method takes a function name and a map of named parameters and returns the calculated value of the macro.
-
The functionName parameter is provided for convenience, allowing a single callback for multiple function call macros.
-
This callback executes on the same thread as the push or get call when application code interacts with the data layer or retrieves a data value from a Container.
Callback that is provided by the application to calculate the value of a custom macro.
Public Method Summary
| abstract Object |
Public Methods
public abstract Object getValue (String functionName, Map<String, Object> 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). It should return an object which is the calculated value of the macro.
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 macros.
When application code makes a call to push an event to the data layer or to get a
data value from a Container,
that may cause this callback to execute. The callback will execute on the same thread
as the push or get call.
Returns
- a String, Double, Boolean, Integer, or Long