DittoUpdateResultReplacedText
@objc
public class DittoUpdateResultReplacedText : NSObject, DittoUpdateResultValueObjC
Represents the update result that will be the value of a DittoUpdateResultObjC
when its type
is replacedText
and asReplacedText
is called on it.
-
The ID of the document that was updated.
Declaration
Swift
@objc public let docID: String
-
The path to the key in the document that was updated.
Declaration
Swift
@objc public let path: String
-
The index in the existing text that the relevant changes should be made from.
Declaration
Swift
@objc public let index: UInt
-
The length of the existing text, starting from the provided index, that should be removed.
Declaration
Swift
@objc public let length: UInt
-
The new text that was inserted at the provided index.
Declaration
Swift
@objc public let newText: String