Attachable

interface Attachable

Attachable is an interface for resources that can be attached to a client.

Inheritors

Functions

Link copied to clipboard
abstract fun applyStatus(status: ResourceStatus)
Link copied to clipboard
abstract fun getKey(): String

getKey returns the key of this resource.

Link copied to clipboard
abstract fun getStatus(): ResourceStatus

getStatus returns the status of this resource.

Link copied to clipboard
abstract fun hasLocalChanges(): Boolean

hasLocalChanges returns whether this resource has local changes to be synchronized. Returns true for Document when there are uncommitted changes. Returns false for Presence as it is server-managed.

Link copied to clipboard
abstract fun publish(event: ResourceEvent)

publish publishes an event to notify observers about changes in this resource.

Link copied to clipboard
abstract fun setActor(actorID: ActorID)

setActor sets the actor ID into this resource.