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:
Rizwan Mohamed Ibrahim 2017-11-03 13:17:12 -07:00 committed by Facebook Github Bot
parent 8cffc50d7d
commit b3ffafc018

View file

@ -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;
/**