All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.realm.kotlin.mongodb.internal.SyncImpl.kt Maven / Gradle / Ivy

Go to download

Sync Library code for Realm Kotlin. This artifact is not supposed to be consumed directly, but through 'io.realm.kotlin:gradle-plugin:1.5.2' instead.

The newest version!
package io.realm.kotlin.mongodb.internal

import io.realm.kotlin.internal.interop.RealmAppPointer
import io.realm.kotlin.internal.interop.RealmInterop
import io.realm.kotlin.mongodb.sync.Sync

internal class SyncImpl(private val app: RealmAppPointer) : Sync {

    override val hasSyncSessions: Boolean
        get() = RealmInterop.realm_app_sync_client_has_sessions(app)

    override fun reconnect() {
        RealmInterop.realm_app_sync_client_reconnect(app)
    }

    override fun waitForSessionsToTerminate() {
        RealmInterop.realm_app_sync_client_wait_for_sessions_to_terminate(app)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy