@Test public void setParamArrayTest() { ArrayList<Integer> array = new ArrayList<Integer>() {{ add(1); add(2); add(3); }}; tracker.setParam(key, array); assertEquals(1, buffer.getVolatileParams().size()); assertEquals(0, buffer.getPersistentParams().size()); assertEquals(1, buffer.getVolatileParams().get(key).getValues().size()); assertEquals("1,2,3", buffer.getVolatileParams().get(key).getValues().get(0).execute()); }
Tracker setParam(String key, Closure value) { return processSetParam(key, value); }
Tracker { Tracker setParam(String key, Closure value) { return processSetParam(key, value); } }
Tracker { Tracker setParam(String key, Closure value) { return processSetParam(key, value); } Tracker();   Tracker(boolean registerNeeded);  Tracker(android.content.Context context);   Tracker(android.content.Context context, boolean registerNeeded);  Tracker(final HashMap<String, Object> configuration);   Tracker(final HashMap<String, Object> configuration, boolean registerNeeded);  Tracker(android.content.Context context, final HashMap<String, Object> configuration);   Tracker(android.content.Context context, final HashMap<String, Object> configuration, boolean registerNeeded); }
Tracker { Tracker setParam(String key, Closure value) { return processSetParam(key, value); } Tracker();   Tracker(boolean registerNeeded);  Tracker(android.content.Context context);   Tracker(android.content.Context context, boolean registerNeeded);  Tracker(final HashMap<String, Object> configuration);   Tracker(final HashMap<String, Object> configuration, boolean registerNeeded);  Tracker(android.content.Context context, final HashMap<String, Object> configuration);   Tracker(android.content.Context context, final HashMap<String, Object> configuration, boolean registerNeeded); LinkedHashMap<String, BusinessObject> getBusinessObjects(); Configuration getConfiguration(); TrackerListener getListener(); void getUserId(final UserIdCallback callback); String getUserIdSync(); void setUserId(String value); Screens Screens(); Gestures Gestures(); Events Events(); ECommerce ECommerce(); AVInsights AVInsights(); Offline Offline(); Context Context(); NuggAds NuggAds(); CustomObjects CustomObjects(); IdentifiedVisitor IdentifiedVisitor(); Publishers Publishers(); SelfPromotions SelfPromotions(); DynamicScreens DynamicScreens(); Products Products(); Cart Cart(); MediaPlayers Players(); @Deprecated Locations Locations(); @Deprecated CustomVars CustomVars(); @Deprecated Aisles Aisles(); Campaigns Campaigns(); @Deprecated CustomTreeStructures CustomTreeStructures(); @Deprecated InternalSearches InternalSearches(); Orders Orders(); MvTestings MvTestings(); void setLog(String log, SetConfigCallback setConfigCallback, boolean... sync); void setSecuredLog(String securedLog, SetConfigCallback setConfigCallback, boolean... sync); void setDomain(String domain, SetConfigCallback setConfigCallback, boolean... sync); void setSiteId(int siteId, SetConfigCallback setConfigCallback, boolean... sync); void setOfflineMode(OfflineMode offlineMode, SetConfigCallback setConfigCallback, boolean... sync); @Deprecated void setSecureModeEnabled(boolean enabled, SetConfigCallback setConfigCallback, boolean... sync); void setIdentifierType(IdentifierType identifierType, SetConfigCallback setConfigCallback, boolean... sync); void setIgnoreLimitedAdTrackingEnabled(boolean enabled, SetConfigCallback setConfigCallback, boolean... sync); void setSendHitWhenOptOutEnabled(boolean enabled, SetConfigCallback setConfigCallback, boolean... sync); void setHashUserIdEnabled(boolean enabled, SetConfigCallback setConfigCallback, boolean... sync); void setPlugins(List<PluginKey> plugins, SetConfigCallback setConfigCallback, boolean... sync); void setPixelPath(String pixelPath, SetConfigCallback setConfigCallback, boolean... sync); void setPersistentIdentifiedVisitorEnabled(boolean enabled, SetConfigCallback setConfigCallback, boolean... sync); void setCrashDetectionEnabled(boolean enabled, SetConfigCallback setConfigCallback, boolean... sync); void setCampaignLastPersistenceEnabled(boolean enabled, SetConfigCallback setConfigCallback, boolean... sync); void setCampaignLifetime(int lifetime, SetConfigCallback setConfigCallback, boolean... sync); void setSessionBackgroundDuration(int duration, SetConfigCallback setConfigCallback, boolean... sync); void setMaxHitSize(int maxHitSize); void setUUIDDuration(int uuidDuration); void setUUIDExpirationMode(UUIDExpirationMode uuidExpirationMode); TrackerListener createDefaultTrackerListener(); @Deprecated void setConfig(final HashMap<String, Object> conf, final boolean override, final SetConfigCallback setConfigCallback, boolean... sync); void setConfig(final HashMap<String, Object> conf, final SetConfigCallback setConfigCallback, boolean... sync); void setConfig(final String key, final Object value, final SetConfigCallback setConfigCallback, boolean... sync); Tracker setListener(TrackerListener trackerListener); Tracker setDefaultListener(); @Deprecated static void optOut(final boolean enabled); @Deprecated static boolean optOutEnabled(); @Deprecated static void doNotTrack(final boolean enabled); @Deprecated static boolean doNotTrackEnabled(); Tracker setParam(String key, int value); Tracker setParam(String key, int value, ParamOption options); Tracker setParam(String key, float value); Tracker setParam(String key, float value, ParamOption options); Tracker setParam(String key, double value); Tracker setParam(String key, double value, ParamOption options); Tracker setParam(String key, boolean value); Tracker setParam(String key, boolean value, ParamOption options); Tracker setParam(String key, String value); Tracker setProp(String key, final String value, boolean persistent); Tracker setProps(Map<String, String> props, boolean persistent); Param getProp(String key); List<Param> getProps(); void delProp(String key); void delProps(); Tracker setParam(String key, final String value, ParamOption options); Tracker setParam(String key, List value); Tracker setParam(String key, List value, ParamOption options); Tracker setParam(String key, Object[] value); Tracker setParam(String key, Object[] value, ParamOption options); Tracker setParam(String key, Map value); Tracker setParam(String key, Map value, ParamOption options); void unsetParam(String key); void resetScreenContext(); void dispatch(); Map<String, Object> getLifecycleMetrics(); Map<String, String> getCrashInformation(); String getSdkVersion(); }
Tracker { Tracker setParam(String key, Closure value) { return processSetParam(key, value); } Tracker();   Tracker(boolean registerNeeded);  Tracker(android.content.Context context);   Tracker(android.content.Context context, boolean registerNeeded);  Tracker(final HashMap<String, Object> configuration);   Tracker(final HashMap<String, Object> configuration, boolean registerNeeded);  Tracker(android.content.Context context, final HashMap<String, Object> configuration);   Tracker(android.content.Context context, final HashMap<String, Object> configuration, boolean registerNeeded); LinkedHashMap<String, BusinessObject> getBusinessObjects(); Configuration getConfiguration(); TrackerListener getListener(); void getUserId(final UserIdCallback callback); String getUserIdSync(); void setUserId(String value); Screens Screens(); Gestures Gestures(); Events Events(); ECommerce ECommerce(); AVInsights AVInsights(); Offline Offline(); Context Context(); NuggAds NuggAds(); CustomObjects CustomObjects(); IdentifiedVisitor IdentifiedVisitor(); Publishers Publishers(); SelfPromotions SelfPromotions(); DynamicScreens DynamicScreens(); Products Products(); Cart Cart(); MediaPlayers Players(); @Deprecated Locations Locations(); @Deprecated CustomVars CustomVars(); @Deprecated Aisles Aisles(); Campaigns Campaigns(); @Deprecated CustomTreeStructures CustomTreeStructures(); @Deprecated InternalSearches InternalSearches(); Orders Orders(); MvTestings MvTestings(); void setLog(String log, SetConfigCallback setConfigCallback, boolean... sync); void setSecuredLog(String securedLog, SetConfigCallback setConfigCallback, boolean... sync); void setDomain(String domain, SetConfigCallback setConfigCallback, boolean... sync); void setSiteId(int siteId, SetConfigCallback setConfigCallback, boolean... sync); void setOfflineMode(OfflineMode offlineMode, SetConfigCallback setConfigCallback, boolean... sync); @Deprecated void setSecureModeEnabled(boolean enabled, SetConfigCallback setConfigCallback, boolean... sync); void setIdentifierType(IdentifierType identifierType, SetConfigCallback setConfigCallback, boolean... sync); void setIgnoreLimitedAdTrackingEnabled(boolean enabled, SetConfigCallback setConfigCallback, boolean... sync); void setSendHitWhenOptOutEnabled(boolean enabled, SetConfigCallback setConfigCallback, boolean... sync); void setHashUserIdEnabled(boolean enabled, SetConfigCallback setConfigCallback, boolean... sync); void setPlugins(List<PluginKey> plugins, SetConfigCallback setConfigCallback, boolean... sync); void setPixelPath(String pixelPath, SetConfigCallback setConfigCallback, boolean... sync); void setPersistentIdentifiedVisitorEnabled(boolean enabled, SetConfigCallback setConfigCallback, boolean... sync); void setCrashDetectionEnabled(boolean enabled, SetConfigCallback setConfigCallback, boolean... sync); void setCampaignLastPersistenceEnabled(boolean enabled, SetConfigCallback setConfigCallback, boolean... sync); void setCampaignLifetime(int lifetime, SetConfigCallback setConfigCallback, boolean... sync); void setSessionBackgroundDuration(int duration, SetConfigCallback setConfigCallback, boolean... sync); void setMaxHitSize(int maxHitSize); void setUUIDDuration(int uuidDuration); void setUUIDExpirationMode(UUIDExpirationMode uuidExpirationMode); TrackerListener createDefaultTrackerListener(); @Deprecated void setConfig(final HashMap<String, Object> conf, final boolean override, final SetConfigCallback setConfigCallback, boolean... sync); void setConfig(final HashMap<String, Object> conf, final SetConfigCallback setConfigCallback, boolean... sync); void setConfig(final String key, final Object value, final SetConfigCallback setConfigCallback, boolean... sync); Tracker setListener(TrackerListener trackerListener); Tracker setDefaultListener(); @Deprecated static void optOut(final boolean enabled); @Deprecated static boolean optOutEnabled(); @Deprecated static void doNotTrack(final boolean enabled); @Deprecated static boolean doNotTrackEnabled(); Tracker setParam(String key, int value); Tracker setParam(String key, int value, ParamOption options); Tracker setParam(String key, float value); Tracker setParam(String key, float value, ParamOption options); Tracker setParam(String key, double value); Tracker setParam(String key, double value, ParamOption options); Tracker setParam(String key, boolean value); Tracker setParam(String key, boolean value, ParamOption options); Tracker setParam(String key, String value); Tracker setProp(String key, final String value, boolean persistent); Tracker setProps(Map<String, String> props, boolean persistent); Param getProp(String key); List<Param> getProps(); void delProp(String key); void delProps(); Tracker setParam(String key, final String value, ParamOption options); Tracker setParam(String key, List value); Tracker setParam(String key, List value, ParamOption options); Tracker setParam(String key, Object[] value); Tracker setParam(String key, Object[] value, ParamOption options); Tracker setParam(String key, Map value); Tracker setParam(String key, Map value, ParamOption options); void unsetParam(String key); void resetScreenContext(); void dispatch(); Map<String, Object> getLifecycleMetrics(); Map<String, String> getCrashInformation(); String getSdkVersion();  }