mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-23 09:18:29 +00:00
Adds header docs to listener API in IGListAdapter #trivial
Summary: Issue fixed: #997 - [X] All tests pass. Demo project builds and runs. - [ ] I added tests, an experiment, or detailed why my change isn't tested. - [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes. - [X] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md) Closes https://github.com/Instagram/IGListKit/pull/1000 Differential Revision: D6233518 Pulled By: rnystrom fbshipit-source-id: ba944c29d094ac83554a97326bc5212ef1fd8671
This commit is contained in:
parent
8cffc50d7d
commit
b3ffafc018
1 changed files with 12 additions and 0 deletions
|
|
@ -262,8 +262,20 @@ NS_SWIFT_NAME(ListAdapter)
|
|||
- (CGSize)sizeForSupplementaryViewOfKind:(NSString *)elementKind
|
||||
atIndexPath:(NSIndexPath *)indexPath;
|
||||
|
||||
/**
|
||||
Adds a listener to the list adapter.
|
||||
|
||||
@param updateListener The object conforming to the `IGListAdapterUpdateListener` protocol.
|
||||
|
||||
@note Listeners are held weakly so there is no need to call `-[IGListAdapter removeUpdateListener:]` on `dealloc`.
|
||||
*/
|
||||
- (void)addUpdateListener:(id<IGListAdapterUpdateListener>)updateListener;
|
||||
|
||||
/**
|
||||
Removes a listener from the list adapter.
|
||||
|
||||
@param updateListener The object conforming to the `IGListAdapterUpdateListener` protocol.
|
||||
*/
|
||||
- (void)removeUpdateListener:(id<IGListAdapterUpdateListener>)updateListener;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue