- (id)initWithArray:(NSArray *)objects
hasMoreItems:(BOOL)hasMoreItems totalItems:(int)totalItems - Initializes and
returns an SkyVaultPagingResult object.
Parameters
- (NSArray *) objects
- The items for this page.
- (BOOL) hasMoreItems
- A flag indicating if more items are available.
- (int) totalItems
- The total number of items available.
Returns
(id) - returns the SkyVaultPagingResult instance..
Example
SkyVaultPagingResult *pagingResult = nil; if (nil != queryResultList) { NSMutableArray *resultArray = [NSMutableArray arrayWithCapacity:[queryResultList.objects count]]; for (CMISObjectData *queryData in queryResultList.objects) { [resultArray addObject:[self.objectConverter nodeFromCMISObjectData:queryData]]; } NSArray *sortedArray = [AlfrescoSortingUtils sortedArrayForArray:resultArray sortKey:listingContext.sortProperty supportedKeys:self.supportedSortKeys defaultKey:self.defaultSortKey ascending:listingContext.sortAscending]; pagingResult = [[AlfrescoPagingResult alloc] initWithArray:sortedArray hasMoreItems:YES totalItems:-1]; } [[NSOperationQueue mainQueue] addOperationWithBlock:^{ completionBlock(pagingResult, operationQueueError); }];