Documentation
public interface SharedMemoryListener
public void onMemoryChange();
To use this interface overwrite onMemoryChange()
See
InterProcessMemory.addListener(InterProcessMemory )