#import "CBLBase.h"
#import "CBLView.h"
Go to the source code of this file.
◆ VALIDATIONBLOCK
| #define VALIDATIONBLOCK |
( |
|
BLOCK | ) |
|
Value:^void(
CBLRevision* newRevision, id<CBLValidationContext> context)\
{BLOCK}
A revision of a CBLDocument.
Definition: CBLRevision.h:17
◆ FILTERBLOCK
| #define FILTERBLOCK |
( |
|
BLOCK | ) |
^BOOL(CBLSavedRevision* revision, NSDictionary* params) {BLOCK} |
◆ CBLFilterBlock
Filter block, used in changes feeds and replication.
◆ CBLChangeEnumeratorBlock
| typedef BOOL(^ CBLChangeEnumeratorBlock) (NSString *key, __nullable id oldValue, __nullable id newValue) |
The type of callback block passed to -[CBLValidationContext enumerateChanges:].
◆ CBLValidationBlock
Validation block, used to approve revisions being added to the database.
The block should call [context reject] or [context rejectWithMessage:] if the proposed new revision is invalid.
◆ kCBLDatabaseChangeNotification
| NSString* const kCBLDatabaseChangeNotification |
This notification is posted by a CBLDatabase in response to document changes.
The notification's userInfo dictionary's "changes" key contains an NSArray of CBLDatabaseChange objects that describe the revisions that were added.