mirror of
https://github.com/tappollo/IGListKit.git
synced 2026-05-13 09:17:06 +08:00
Summary: Closes #181 Closes https://github.com/Instagram/IGListKit/pull/207 Differential Revision: D4216383 Pulled By: jessesquires fbshipit-source-id: 664c6d0f1cf82647cf8e2231cf35348b08351c9d
38 lines
1.2 KiB
Objective-C
38 lines
1.2 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;
|
|
|
|
/**
|
|
Conform to `IGListAdapterDelegate` to receive display events for objects in a list.
|
|
*/
|
|
@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 object 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 object in the list.
|
|
*/
|
|
- (void)listAdapter:(IGListAdapter *)listAdapter didEndDisplayingObject:(id)object atIndex:(NSInteger)index;
|
|
|
|
@end
|