penduDev
penduDev

Reputation: 4785

RealmResults.clear() throwing NotSupportedException

clear method is deprecated in RealmResults 0.89.1

I have used this method at some places in my code. The latest docs doesn't have any updates about it. What is the new method to delete all results from Realm?

Upvotes: 1

Views: 1043

Answers (1)

Bogdan Stolyarov
Bogdan Stolyarov

Reputation: 126

RealmResults.clear() now throws UnsupportedOperationException. Use RealmResults.deleteAllFromRealm() instead.

https://github.com/realm/realm-java/blob/master/CHANGELOG.md

Upvotes: 5

Related Questions