TWSDocument Class Reference
Inherits from | NSObject |
---|---|
Declared in | TWSDocument.h |
– sid
The unique identifier for this document.
- (nonnull NSString *)sid
Return Value
The identifier.
Discussion
The unique identifier for this document.
Declared In
TWSDocument.h
– uniqueName
The unique name for this document.
- (nullable NSString *)uniqueName
Return Value
The unique name.
Discussion
The unique name for this document.
Declared In
TWSDocument.h
– getData
Obtain a snapshot of the document’s current data.
- (nonnull TWSData *)getData
Return Value
NSDictionary containing the data.
Discussion
Obtain a snapshot of the document’s current data.
Declared In
TWSDocument.h
– setData:flowId:completion:
Update the value of the document’s data.
- (void)setData:(nonnull TWSData *)data flowId:(NSUInteger)flowId completion:(nullable TWSCompletion)completion
Parameters
data |
The new data. |
---|---|
flowId |
A developer specified identifier for this remote request. |
completion |
Completion block that will specify the result of the operation. |
Discussion
Update the value of the document’s data.
Declared In
TWSDocument.h
– mutateDataWith:flowId:completion:
Modify the Document’s data in a conflict-friendly way.
- (void)mutateDataWith:(nonnull TWSDataMutator)mutator flowId:(NSUInteger)flowId completion:(nullable TWSDataCompletion)completion
Parameters
mutator |
The mutator that you provide to modify the data passed in. |
---|---|
flowId |
A developer specified identifier for this remote request. |
completion |
Completion block that will specify the result of the operation and the updated value of the data. |
Discussion
Modify the Document’s data in a conflict-friendly way.
Declared In
TWSDocument.h
– removeDocumentWithFlowId:completion:
Remove the document from the system, deleting it.
- (void)removeDocumentWithFlowId:(NSUInteger)flowId completion:(nullable TWSCompletion)completion
Parameters
flowId |
A developer specified identifier for this remote request. |
---|---|
completion |
Completion block that will specify the result of the operation. |
Discussion
Remove the document from the system, deleting it.
Declared In
TWSDocument.h