Skip to content Skip to sidebar Skip to footer

Reading A Realmobject From Another Thread

I have a RealmObject User that I store in a singleton and access throughout the application -- it was retrieved on the UI thread. The object represents the logged in user, and has

Solution 1:

Yes, that is correct. You cannot access an object on multiple threads, so in your case storing a reference to the ID and use that to requery the object is the right approach.


Post a Comment for "Reading A Realmobject From Another Thread"