Functions
The following functions are available globally.
-
Create a diff using indexes between two collections.
Declaration
Objective-C
extern IGListIndexSetResult *_Nonnull IGListDiff( NSArray<id<IGListDiffable>> *_Nullable oldArray, NSArray<id<IGListDiffable>> *_Nullable newArray, IGListDiffOption option)Parameters
oldArrayThe old objects to diff against.
newArrayThe new objects to diff with.
optionAn option on how to compare objects.
Return Value
Result object with effected indexes.
-
Create a diff using index paths between two collections.
Declaration
Objective-C
extern IGListIndexPathResult *_Nonnull IGListDiffPaths( NSInteger fromSection, NSInteger toSection, NSArray<id<IGListDiffable>> *_Nullable oldArray, NSArray<id<IGListDiffable>> *_Nullable newArray, IGListDiffOption option)Parameters
fromSectionThe old section used to seed returned index paths.
toSectionThe new section used to seed returned index paths.
oldArrayThe old objects to diff against.
newArrayThe new objects to diff with.
optionAn option on how to compare objects.
Return Value
Result object with effected index paths.
-
Check if an experiment is enabled in a bitmask.
Declaration
Objective-C
static inline BOOL IGListExperimentEnabled(IGListExperiment mask, IGListExperiment option)Swift
func IGListExperimentEnabled(_ mask: IGListExperiment, _ option: IGListExperiment) -> BoolParameters
maskThe bitmask of experiments.
optionThe option to compare with.
Return Value
YES if the option is in the bitmask, otherwise NO.
-
Perform a diff with an experiment bitmask. See IGListDiff() in IGListDiff.h
Declaration
Objective-C
extern IGListIndexSetResult *_Nonnull IGListDiffExperiment( NSArray<id<IGListDiffable>> *_Nullable oldArray, NSArray<id<IGListDiffable>> *_Nullable newArray, IGListDiffOption option, IGListExperiment experiments) -
Perform a diff with an experiment bitmask. See IGListDiffPaths() in IGListDiff.h
Declaration
Objective-C
extern IGListIndexPathResult *_Nonnull IGListDiffPathsExperiment( NSInteger fromSection, NSInteger toSection, NSArray<id<IGListDiffable>> *_Nullable oldArray, NSArray<id<IGListDiffable>> *_Nullable newArray, IGListDiffOption option, IGListExperiment experiments)
View on GitHub
Functions Reference