commit | author | age
|
a0a843
|
1 |
// |
H |
2 |
// TWTRTimelineDelegate.h |
|
3 |
// TwitterKit |
|
4 |
// |
|
5 |
// Created by Steven Hepting on 7/25/16. |
|
6 |
// Copyright © 2016 Twitter. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <UIKit/UIKit.h> |
|
10 |
|
|
11 |
@class TWTRTweet; |
|
12 |
@class TWTRTimelineViewController; |
|
13 |
|
|
14 |
NS_ASSUME_NONNULL_BEGIN |
|
15 |
|
|
16 |
@protocol TWTRTimelineDelegate <NSObject> |
|
17 |
|
|
18 |
@optional |
|
19 |
|
|
20 |
/** |
|
21 |
* The Timeline started loading new Tweets. This would be an |
|
22 |
* appropriate place to begin showing a loading indicator. |
|
23 |
* |
|
24 |
* @param timeline Timeline controller providing the updates |
|
25 |
*/ |
|
26 |
- (void)timelineDidBeginLoading:(TWTRTimelineViewController *)timeline; |
|
27 |
|
|
28 |
/** |
|
29 |
* The Timeline has finished loading more Tweets. |
|
30 |
* |
|
31 |
* If Tweets array is `nil`, you should check the error object |
|
32 |
* for a description of the failure case. |
|
33 |
* |
|
34 |
* @param timeline Timeline displaying loaded Tweets |
|
35 |
* @param tweets Tweet objects loaded from the network |
|
36 |
* @param error Error object describing details of failure |
|
37 |
*/ |
|
38 |
- (void)timeline:(TWTRTimelineViewController *)timeline didFinishLoadingTweets:(nullable NSArray *)tweets error:(nullable NSError *)error; |
|
39 |
|
|
40 |
@end |
|
41 |
|
|
42 |
NS_ASSUME_NONNULL_END |