congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Event
Code IndexAdd Tabnine to your IDE (free)

How to use
Event
in
com.orhanobut.tracklytics

Best Java code snippets using com.orhanobut.tracklytics.Event (Showing top 5 results out of 315)

origin: orhanobut/tracklytics

public void trackEvent(String eventName, Map<String, Object> attributes) {
 trackEvent(new Event(eventName, null, null, attributes, superAttributes));
}
origin: orhanobut/tracklytics

 @Test public void getAllAttributes() {
  Map<String, Object> attributes = new HashMap<>();
  attributes.put("key", "value");

  Map<String, Object> superAttributes = new HashMap<>();
  superAttributes.put("key1", "value1");

  Event event = new Event("event_name", null, null, attributes, superAttributes);

  assertThat(event.getAllAttributes()).containsEntry("key", "value");
  assertThat(event.getAllAttributes()).containsEntry("key1", "value1");
 }
}
origin: orhanobut/tracklytics

public void trackEvent(String eventName) {
 trackEvent(new Event(eventName, null, null, null, superAttributes));
}
origin: orhanobut/tracklytics

@Override public void onAspectEventTriggered(TrackEvent trackEvent, Map<String, Object> attributes) {
 trackEvent(new Event(trackEvent, attributes, superAttributes));
}
origin: orhanobut/tracklytics

@Test public void defaultValues() {
 Map<String, Object> attributes = new HashMap<>();
 Map<String, Object> superAttributes = new HashMap<>();
 int[] filters = {1, 3, 4};
 String[] tags = {"a", "b"};
 Event event = new Event("event_name", filters, tags, attributes, superAttributes);
 assertThat(event.name).isEqualTo("event_name");
 assertThat(event.filters).isEqualTo(filters);
 assertThat(event.tags).isEqualTo(tags);
 assertThat(event.attributes).isEqualTo(attributes);
 assertThat(event.superAttributes).isEqualTo(superAttributes);
}
com.orhanobut.tracklyticsEvent

Javadoc

This is the container for the triggered tracking event. All related information is kept in here.

Most used methods

  • <init>
  • getAllAttributes

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JFileChooser (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now