How to get specific changes from ChangeListener in Realm

I am trying to use Realm-Database for my Android application. When I want to use RealmChangeListener in my area, it automatically creates an " onChange " method. This means that if something has changed in the database, the program executes this method.

I want to get detailed information about what has been changed. That would be so great!

Does anyone know something about this feature? I will post the code below for a better understanding of what I'm trying to do.

Hi John

code:

 Realm realm = Realm.getInstance(getApplicationContext()); realmListener = new RealmChangeListener() { @Override public void onChange() { Log.i("realmtest","some values in the database have been changed"); }}; realm.addChangeListener(realmListener); 
+5
source share
2 answers

Fine-grained notifications are now supported.

Source 1

Recyclerview example

+1
source

Detailed notifications are not supported, but we are working on it :)

+2
source

All Articles