IGListKit/Source/IGListAdapterDelegate.h
FBShipIt cdc796746a Initial commit
fbshipit-source-id: c38b897b9e2b87c782e0e01b0145d9189dc7f9d8
2016-10-11 10:12:17 -04:00

34 lines
1.1 KiB
Objective-C

/**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <Foundation/Foundation.h>
@class IGListAdapter;
@protocol IGListAdapterDelegate <NSObject>
/**
Notifies the delegate that a list object is about to be displayed
@param listAdapter The list adapter sending this information.
@param object The object that will display.
@param index The index of the object in the list.
*/
- (void)listAdapter:(IGListAdapter *)listAdapter willDisplayObject:(id)object atIndex:(NSInteger)index;
/**
Notifies the delegate that a list item is no longer being displayed
@param listAdapter The list adapter sending this information.
@param object The object that ended display.
@param index The index of the item/object in the list.
*/
- (void)listAdapter:(IGListAdapter *)listAdapter didEndDisplayingObject:(id)object atIndex:(NSInteger)index;
@end