mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-21 16:28:26 +00:00
34 lines
1.1 KiB
Objective-C
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
|