-
Undocumented
Declaration
Objective-C
- (id)initWithParentViewName:(NSString *)viewName filtering:(YapDatabaseViewFiltering *)filtering;Swift
init(parentViewName viewName: String, filtering: YapDatabaseViewFiltering) -
Undocumented
Declaration
Objective-C
- (id)initWithParentViewName:(NSString *)viewName filtering:(YapDatabaseViewFiltering *)filtering versionTag:(nullable NSString *)versionTag;Swift
init(parentViewName viewName: String, filtering: YapDatabaseViewFiltering, versionTag: String?) -
Declaration
Objective-C
- (nonnull id)initWithParentViewName:(nonnull NSString *)viewName filtering: (nonnull YapDatabaseViewFiltering *)filtering versionTag:(nullable NSString *)versionTag options:(nullable YapDatabaseViewOptions *)options;Swift
init(parentViewName viewName: String, filtering: YapDatabaseViewFiltering, versionTag: String?, options: YapDatabaseViewOptions?)Parameters
viewNameThe parentViewName must be the registered name of a YapDatabaseView or YapDatabaseFilteredView extension. That is, you must first register the parentView, and then use that registered name here.
filteringThe filteringBlock allows you to filter items from this view that exist in the parent view. There are multiple filteringBlock types that are supported.
See
YapDatabaseFilteredViewTypes.h for block type definitions.versionTagThe filteringBlock may be changed after the filteredView is created (see YapDatabaseFilteredViewTransaction). This is often in association with user events. The versionTag helps to identify the filteringBlock being used. During initialization of the view, the view will compare the passed tag to what it has stored from a previous app session. If the tag matches, then the filteredView is already setup. Otherwise the view will automatically flush its tables, and re-populate itself.
optionsThe options allow you to specify things like creating an IN-MEMORY-ONLY VIEW (non persistent).
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *parentViewNameSwift
var parentViewName: String { get } -
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) YapDatabaseViewFiltering *filteringSwift
var filtering: YapDatabaseViewFiltering { get }
YapDatabaseFilteredView Class Reference