commonMain.io.realm.kotlin.mongodb.internal.SyncImpl.kt Maven / Gradle / Ivy
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