@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="MutationObserver")
public class MutationObserver
extends java.lang.Object
| Constructor and Description |
|---|
MutationObserver(MutationCallback callback)
The DOM MutationObserver() constructor — part of the MutationObserver interface — creates and returns a new observer which invokes a specified callback when DOM events occur.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
The MutationObserver method disconnect() tells the observer to stop watching for mutations.
|
void |
observe(Node target)
The MutationObserver method observe() configures the MutationObserver callback to begin receiving notifications of changes to the DOM that match the given options.
|
void |
observe(Node target,
MutationObserverInit options)
The MutationObserver method observe() configures the MutationObserver callback to begin receiving notifications of changes to the DOM that match the given options.
|
JsArray<MutationRecord> |
takeRecords()
The MutationObserver method takeRecords() returns a list of all matching DOM changes that have been detected but not yet processed by the observer's callback function, leaving the mutation queue empty.
|
public MutationObserver(@Nonnull
MutationCallback callback)
public void disconnect()
public void observe(@Nonnull
Node target,
@Nonnull
MutationObserverInit options)
public void observe(@Nonnull
Node target)
@Nonnull public JsArray<MutationRecord> takeRecords()