
de.knightsoftnet.mtwidgets.client.jswrapper.IntersectionObserver Maven / Gradle / Ivy
package de.knightsoftnet.mtwidgets.client.jswrapper;
import elemental2.dom.HTMLElement;
import jsinterop.annotations.JsType;
@JsType(isNative = true)
public abstract class IntersectionObserver {
/*
* Default constructor.
*/
// @JsConstructor
// public IntersectionObserver(final EventListenerCallback onIntersection,
// final JsonObject config) {}
/**
* Observes the target.
*
* @param target the target
*/
@SuppressWarnings("unusable-by-js")
public native void observe(final HTMLElement target);
/**
* Removes the target from observation.
*
* @param target the target
*/
@SuppressWarnings("unusable-by-js")
public native void unobserve(final HTMLElement target);
/**
* Disconnects.
*/
public native void disconnect();
/**
* Takes records.
*
* @return the records
*/
public native Object takeRecords();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy