All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.chrome.devtools.client.core.page.LifecycleEventEvent Maven / Gradle / Ivy

package com.hubspot.chrome.devtools.client.core.page;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.Event;
import com.hubspot.chrome.devtools.client.core.network.LoaderId;
import com.hubspot.chrome.devtools.client.core.network.MonotonicTime;

/**
 * Fired for top level page lifecycle events such as navigation, load, paint, etc.
 */
public final class LifecycleEventEvent extends Event {
  private FrameId frameId;

  private LoaderId loaderId;

  private String name;

  private MonotonicTime timestamp;

  @JsonCreator
  public LifecycleEventEvent(@JsonProperty("frameId") FrameId frameId,
      @JsonProperty("loaderId") LoaderId loaderId, @JsonProperty("name") String name,
      @JsonProperty("timestamp") MonotonicTime timestamp) {
    this.frameId = frameId;
    this.loaderId = loaderId;
    this.name = name;
    this.timestamp = timestamp;
  }

  public FrameId getFrameId() {
    return frameId;
  }

  public LoaderId getLoaderId() {
    return loaderId;
  }

  public String getName() {
    return name;
  }

  public MonotonicTime getTimestamp() {
    return timestamp;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy