public class GlobalContextsConfiguration extends Object implements Configuration, com.snowplowanalytics.snowplow.internal.globalcontexts.GlobalContextsConfigurationInterface
| Modifier and Type | Field and Description |
|---|---|
Map<String,GlobalContext> |
contextGenerators |
| Constructor and Description |
|---|
GlobalContextsConfiguration(Map<String,GlobalContext> contextGenerators)
Allows for the creation of a map of tags and associated
GlobalContext generators. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String tag,
GlobalContext contextGenerator)
Add a GlobalContext generator to the configuration of the tracker.
|
GlobalContextsConfiguration |
copy() |
Set<String> |
getTags() |
GlobalContext |
remove(String tag)
Remove a GlobalContext generator from the configuration of the tracker.
|
@NonNull public final Map<String,GlobalContext> contextGenerators
public GlobalContextsConfiguration(@Nullable
Map<String,GlobalContext> contextGenerators)
GlobalContext generators.
They are used by the tracker based on the filter settings defined on each GlobalContext.contextGenerators - Map of Global Contexts generators.@NonNull public Set<String> getTags()
getTags in interface com.snowplowanalytics.snowplow.internal.globalcontexts.GlobalContextsConfigurationInterfacepublic boolean add(@NonNull
String tag,
@NonNull
GlobalContext contextGenerator)
add in interface com.snowplowanalytics.snowplow.internal.globalcontexts.GlobalContextsConfigurationInterfacetag - The label identifying the generator in the tracker.contextGenerator - The GlobalContext generator.@Nullable public GlobalContext remove(@NonNull String tag)
remove in interface com.snowplowanalytics.snowplow.internal.globalcontexts.GlobalContextsConfigurationInterfacetag - The label identifying the generator in the tracker.@NonNull public GlobalContextsConfiguration copy()
copy in interface Configuration