public abstract class SyncMutator
extends java.lang.Object
onApplied to perform your modifications. This method will be provided with the
previous data contents and should return new desired contents or null to abort mutate operation.
You *must* dispose() a mutator to avoid memory leaks. Internally, the native part will keep a
strong reference to the Java class, keeping it from being GC'd.| Constructor and Description |
|---|
SyncMutator()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
org.json.JSONObject |
onApplied(org.json.JSONObject currentData)
Override this method to provide your own implementation of data mutator.
|
public SyncMutator()
public org.json.JSONObject onApplied(org.json.JSONObject currentData)
currentData - Current contents of the entity to modify.public void dispose()