DittoUpdateResultObjC

@objc
public class DittoUpdateResultObjC : NSObject

An Objective-C compatible equivalent to DittoUpdateResult. Describes the result of an update operation performed on a DittoMutableDocument.

  • set: Describes the set update that was performed.
  • removed: Describes the remove update that was performed.
  • replacedWithCounter: Describes the replaceWithCounter update that was performed.
  • incremented: Describes the increment update that was performed.
  • replacedText: Describes the replaceText update that was performed.
  • pushed: Describes the push update that was performed.
  • popped: Describes the pop update that was performed.

You can switch on the type and then get the value of the result as the appropriate type using the relevant function out of:

  • asSet
  • asRemoved
  • asReplacedWithCounter
  • asIncremented
  • asReplacedText
  • asPushed
  • asPopped