com.google.android.gms.tagmanager.Container.FunctionCallMacroCallback |
Callback that is provided by the application to calculate the value of a custom macro.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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).
|
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.