commit | author | age
|
655e66
|
1 |
/* |
H |
2 |
* Copyright (C) 2017 Twitter, Inc. |
|
3 |
* |
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
* you may not use this file except in compliance with the License. |
|
6 |
* You may obtain a copy of the License at |
|
7 |
* |
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
* |
|
10 |
* Unless required by applicable law or agreed to in writing, software |
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
* See the License for the specific language governing permissions and |
|
14 |
* limitations under the License. |
|
15 |
* |
|
16 |
*/ |
a0a843
|
17 |
|
H |
18 |
#import <UIKit/UIKit.h> |
|
19 |
|
|
20 |
@class TWTRTweet; |
|
21 |
@class TWTRTimelineViewController; |
|
22 |
|
|
23 |
NS_ASSUME_NONNULL_BEGIN |
|
24 |
|
|
25 |
@protocol TWTRTimelineDelegate <NSObject> |
|
26 |
|
|
27 |
@optional |
|
28 |
|
|
29 |
/** |
|
30 |
* The Timeline started loading new Tweets. This would be an |
|
31 |
* appropriate place to begin showing a loading indicator. |
|
32 |
* |
|
33 |
* @param timeline Timeline controller providing the updates |
|
34 |
*/ |
|
35 |
- (void)timelineDidBeginLoading:(TWTRTimelineViewController *)timeline; |
|
36 |
|
|
37 |
/** |
|
38 |
* The Timeline has finished loading more Tweets. |
|
39 |
* |
|
40 |
* If Tweets array is `nil`, you should check the error object |
|
41 |
* for a description of the failure case. |
|
42 |
* |
|
43 |
* @param timeline Timeline displaying loaded Tweets |
|
44 |
* @param tweets Tweet objects loaded from the network |
|
45 |
* @param error Error object describing details of failure |
|
46 |
*/ |
|
47 |
- (void)timeline:(TWTRTimelineViewController *)timeline didFinishLoadingTweets:(nullable NSArray *)tweets error:(nullable NSError *)error; |
|
48 |
|
|
49 |
@end |
|
50 |
|
|
51 |
NS_ASSUME_NONNULL_END |