Session Callback Parameters - adjust/cordova_sdk GitHub Wiki
The same callback parameters that are registered for events can be also saved to be sent in every event or session of the adjust SDK.
The session callback parameters have a similar interface of the event callback parameters. Instead of adding the key and
its value to an event, it's added through a call to method addSessionCallbackParameter
of the Adjust
instance:
Adjust.addSessionCallbackParameter("foo", "bar");
The session callback parameters will be merged with the callback parameters added to an event. The callback parameters added to an event have precedence over the session callback parameters. Meaning that, when adding a callback parameter to an event with the same key to one added from the session, the value that prevails is the callback parameter added to the event.
It's possible to remove a specific session callback parameter by passing the desiring key to the method
removeSessionCallbackParameter
of the Adjust
instance:
Adjust.removeSessionCallbackParameter("foo");
If you wish to remove all key and values from the session callback parameters, you can reset it with the method
resetSessionCallbackParameters
of the Adjust
instance:
Adjust.resetSessionCallbackParameters();