Observing a property or PropertyQuery
Using ObjectBoxLiveData to observer one property?
I'm not sure what you want.
Are you talking about observing a PropertyQuery? This is not supported.
Are you talking about returning only a single property in Observer.onChanged()? No, this is not possible with ObjectBoxLiveData.
Anyhow, you can access the properties you want in your Observer.onChanged()? Or write your own LiveData that does what you want.
-ut
This is what I want to know. Thanks. Why can't do this?
As I explained above,
- observing
PropertyQueryis not supported and -
ObjectBoxLiveDatais tailored to return a list of entities, like aQuery.
Which one of those do you need? We can keep this ticket open as a feature request then. -ut
Both observing PropertyQuery and return only a single property in Observer.onChanged() are needed. I hope it will appear in the future.