Package-level declarations

Types

Link copied to clipboard

Builder used to construct a call defining serializers for the different arguments and return value.

Functions

Link copied to clipboard
inline suspend fun <T> Functions.call(name: String, vararg args: Any?): T

Invokes an Atlas function.

inline suspend fun <T> Functions.call(name: String, callBuilderBlock: CallBuilder<T>.() -> Unit): T

Invokes an Atlas function using the EJson encoder defined in AppConfiguration.ejson.

Link copied to clipboard
fun <T> User.customData(serializer: KSerializer<T>): T?

Returns the custom user data associated with the user in the Realm App as T.

Link copied to clipboard
inline fun User.customDataAsBsonDocument(): BsonDocument?

Return the custom user data associated with the user in the Realm App as BsonDocument.

Link copied to clipboard

Insert an AsymmetricRealmObject into Realm. Since asymmetric objects are "write-only", it is not possible to access the managed data after it has been inserted.

Insert a dynamic version of a AsymmetricRealmObject into a realm. Since asymmetric objects are "write-only", it is not possible to access the managed data after it has been inserted.

Link copied to clipboard
fun <T> User.profile(serializer: KSerializer<T>): T

Returns the profile for this user as a T.

Link copied to clipboard
inline fun User.profileAsBsonDocument(): BsonDocument

Returns the profile for this user as BsonDocument.

Link copied to clipboard
suspend fun <T : RealmObject> RealmQuery<T>.subscribe(mode: WaitForSync = WaitForSync.FIRST_TIME, timeout: Duration = Duration.INFINITE): RealmResults<T>
suspend fun <T : RealmObject> RealmResults<T>.subscribe(mode: WaitForSync = WaitForSync.FIRST_TIME, timeout: Duration = Duration.INFINITE): RealmResults<T>

Automatically create an anonymous Subscription from a local query result in the background and return the result of re-running the same query against the Realm file. This behaves the same as creating a named variant by calling subscribe. See this method for details about the exact behavior.

suspend fun <T : RealmObject> RealmQuery<T>.subscribe(name: String, updateExisting: Boolean = false, mode: WaitForSync = WaitForSync.FIRST_TIME, timeout: Duration = Duration.INFINITE): RealmResults<T>

Automatically create a named Subscription from a query in the background and return the result of running the same query against the local Realm file.

suspend fun <T : RealmObject> RealmResults<T>.subscribe(name: String, updateExisting: Boolean = false, mode: WaitForSync = WaitForSync.FIRST_TIME, timeout: Duration = Duration.INFINITE): RealmResults<T>

Automatically create a named Subscription from a local query result in the background and return the result of re-running the same query against the Realm file.