[DOCS-13949] New Realm Java UI thread checks not documented Created: 27/Oct/20  Updated: 30/Oct/20  Resolved: 30/Oct/20

Status: Closed
Project: Documentation
Component/s: Realm
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Claus Rørbech Assignee: Nathan Contino (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:
Days since reply: 3 years, 14 weeks, 5 days ago

 Description   

Description

Realm Java 10.0.0 introduced checks for whether queries and transactions are executed on the UI thread. This does not seem to have propagated into the documentation at https://realm.io/docs/java/latest#writes

CHANGELOG

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

API Reference for Queries and transactions

https://realm.io/docs/java/10.0.0/api/io/realm/RealmQuery.html

https://realm.io/docs/java/10.0.0/api/io/realm/Realm.html#executeTransaction-io.realm.Realm.Transaction-

And opt-in configuration for preventing exeptions

https://realm.io/docs/java/10.0.0/api/io/realm/RealmConfiguration.Builder.html#allowQueriesOnUiThread-boolean-

https://realm.io/docs/java/10.0.0/api/io/realm/RealmConfiguration.Builder.html#allowWritesOnUiThread-boolean-

 

 

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Nathan Contino (Inactive) [ 30/Oct/20 ]

This ticket refers to the legacy realm documentation at realm.io, which we no longer maintain. The MongoDB Realm v10 documentation does document the fact that the Realm Android SDK does not allow queries or writes on the UI thread by default.

Generated at Thu Feb 08 08:09:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.