InitialDataCallback
This interface is used to write data to a Realm file when the file is first created. It will be used in a way similar to using Realm.writeBlocking.
Note that writing data to a Realm file will involve IO, so it should generally only be done as part of opening a Realm on a background thread.
Functions
Link copied to clipboard
Creates a write transaction in which the initial data can be written with MutableRealm as a receiver. This mirrors the API when using Realm.write and allows for the following pattern: