ReplicatedRepository

expect class ReplicatedRepository(client: IModelClient, branchReference: BranchReference, user: () -> String)
actual class ReplicatedRepository(client: IModelClient, branchReference: BranchReference, user: () -> String)
actual open class ReplicatedRepository(client: IModelClient, branchReference: BranchReference, user: () -> String)

Dispose should be called on this, as otherwise a regular polling will go on.

Constructors

Link copied to clipboard
expect constructor(client: IModelClient, repositoryId: RepositoryId, branchName: String, user: () -> String)
expect constructor(client: IModelClient, branchReference: BranchReference, user: () -> String)
actual constructor(client: IModelClient, repositoryId: RepositoryId, branchName: String, user: () -> String)
actual constructor(client: IModelClient, branchReference: BranchReference, user: () -> String)
actual constructor(client: IModelClient, repositoryId: RepositoryId, branchName: String, user: () -> String)
actual constructor(client: IModelClient, branchReference: BranchReference, user: () -> String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
expect val branch: IBranch
actual val branch: IBranch
actual val branch: IBranch
Link copied to clipboard
expect var localVersion: CLVersion?
actual var localVersion: CLVersion?

Functions

Link copied to clipboard
Link copied to clipboard
fun createVersion(tree: CLTree, operations: Array<IOperation>, previousVersion: CLVersion?): CLVersion
Link copied to clipboard
expect fun dispose()
actual fun dispose()
actual open fun dispose()
Link copied to clipboard

Call this at the end of an edit operation in the editor

Link copied to clipboard
expect fun isDisposed(): Boolean
actual fun isDisposed(): Boolean
actual fun isDisposed(): Boolean
Link copied to clipboard
fun startEdit()

Call this at the beginning of an edit operation in the editor