-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathTikTokHeaders.h
289 lines (239 loc) · 9.78 KB
/
TikTokHeaders.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <SafariServices/SafariServices.h>
#import "BHIManager.h"
#import "SettingsViewController.h"
#import "SecurityViewController.h"
#import "BHDownload.h"
#import "BHMultipleDownload.h"
#import "JGProgressHUD/JGProgressHUD.h"
@interface AppDelegate : NSObject <UIApplicationDelegate>
@end
@interface SparkViewController: UIViewController
@property(nonatomic, strong, readwrite) NSURL *originURL;
- (void)didTapCloseButton;
@end
@interface UIView (RCTViewUnmounting)
@property(retain, nonatomic) UIViewController *yy_viewController;
@end
@interface TikTokFeedTabControl: UIView
@end
@interface AWEFeedVideoButton: UIButton
@property(copy, nonatomic, readwrite) NSString *imageNameString;
@end
@interface AWEURLModel : NSObject
@property(retain, nonatomic) NSArray* originURLList;
- (NSURL *)recommendUrl;
- (NSURL *)bestURLtoDownload;
- (NSString *)bestURLtoDownloadFormat;
@end
@interface AWEVideoModel : NSObject
@property(readonly, nonatomic) AWEURLModel *playURL;
@property(readonly, nonatomic) AWEURLModel *downloadURL;
@property(readonly, nonatomic) NSNumber *duration;
@end
@interface AWEMusicModel : NSObject
@property(readonly, nonatomic) AWEURLModel *playURL;
@end
@interface AWEPhotoAlbumPhoto: NSObject
@property(readonly, nonatomic) AWEURLModel *originPhotoURL;
@end
@interface AWEPhotoAlbumModel: NSObject
@property(readonly, nonatomic) NSArray <AWEPhotoAlbumPhoto *> *photos;
@end
@interface AWEAwemeModel : NSObject
@property(nonatomic) BOOL isAds;
@property(retain, nonatomic) AWEVideoModel *video;
@property(retain, nonatomic) id music;
@property(retain, nonatomic) AWEPhotoAlbumModel *photoAlbum;
@property(nonatomic) NSString *music_songName;
@property(nonatomic) NSString *music_artistName;
@property(nonatomic, strong, readwrite) AWEAwemeModel *currentPlayingStory;
@end
@interface AWEUserModel: NSObject
@property(nonatomic, copy, readwrite) NSString *bioUrl;
@property(nonatomic, copy, readwrite) NSString *nickname;
@property(nonatomic, copy, readwrite) NSString *signature;
@property(nonatomic, copy, readwrite) NSString *socialName;
@end
@interface AWESettingItemModel: NSObject
@property(nonatomic, copy, readwrite) NSString *identifier;
@property(nonatomic, copy, readwrite) NSString *title;
@property(nonatomic, copy, readwrite) NSString *detail;
@property(nonatomic, strong, readwrite) UIImage *iconImage;
@property(nonatomic, assign, readwrite) NSUInteger type;
- (instancetype)initWithIdentifier:(NSString *)identifier;
@end
@interface TTKSettingsBaseCellPlugin: NSObject
@property(nonatomic, weak, readwrite) id context;
@property(nonatomic, strong, readwrite) AWESettingItemModel *itemModel;
- (instancetype)initWithPluginContext:(id)context;
@end
@interface AWEBaseListSectionViewModel: NSObject
@property(nonatomic, copy, readwrite) NSArray *modelsArray;
- (void)insertModel:(id)model atIndex:(NSInteger)index animated:(bool)animated;
@end
@interface AWESettingsNormalSectionViewModel: AWEBaseListSectionViewModel
@property(nonatomic, weak, readwrite) id context;
@property(nonatomic, copy, readwrite) NSString *sectionHeaderTitle;
@property(nonatomic, copy, readwrite) NSString *sectionIdentifier;
@end
@interface AWEBaseListViewModel: NSObject
- (NSArray *)sectionViewModelsArray;
@end
@interface AWEPluginBaseViewModel: AWEBaseListViewModel
@end
@interface AWESettingsBaseViewModel: AWEPluginBaseViewModel
@end
@interface TTKSettingsViewModel: AWESettingsBaseViewModel
@end
@interface TIKTOKProfileHeaderViewController: UIViewController
@property(nonatomic, strong) AWEUserModel *user;
@end
@interface TIKTOKProfileHeaderView: UIView
- (void)addHandleLongPress;
- (void)handleLongPress:(UILongPressGestureRecognizer *)sender;
@end
@interface AWEProfileImagePreviewView: UIView
@property(strong, nonatomic, readwrite) UIImageView *avatar;
- (void)addHandleLongPress;
- (void)handleLongPress:(UILongPressGestureRecognizer *)sender;
@end
@interface AWEAwemeBaseViewController: UIViewController
@property(nonatomic, strong, readwrite) AWEAwemeModel *model;
@property (nonatomic, copy, readwrite) NSString *referString;
@property (nonatomic) id interactionController;
@end
@interface TTKFeedInteractionContainerElement: NSObject
- (void)hideAllElements:(BOOL)hide exceptArray:(id)array;
@end
@interface TTKFeedInteractionMainContainerElement: TTKFeedInteractionContainerElement
@end
@interface TTKFeedInteractionLegacyMainContainerElement: TTKFeedInteractionMainContainerElement
@end
@interface AWEPlayPhotoAlbumViewController: UIViewController
@property(nonatomic, strong, readwrite) AWEAwemeModel *model;
- (NSIndexPath *)currentIndexPath;
@end
@interface TTKPhotoAlbumFeedCellController: AWEAwemeBaseViewController
{
AWEPlayPhotoAlbumViewController *_photoAlbumController;
}
@end
@interface TTKPhotoAlbumDetailCellController: AWEAwemeBaseViewController
{
AWEPlayPhotoAlbumViewController *_photoAlbumController;
}
@end
@interface AWEFeedCellViewController: AWEAwemeBaseViewController
@end
@interface AWEAwemeDetailCellViewController: AWEAwemeBaseViewController
@end
@interface TTKStoryContainerViewController: UIViewController
@property(nonatomic, strong, readwrite) AWEAwemeModel *model;
@property (nonatomic) id interactionController;
@end
@interface TTKStoryDetailContainerViewController: TTKStoryContainerViewController
@end
@interface AWEFeedViewTemplateCell: UITableViewCell
@property(nonatomic, strong, readwrite) UIViewController *viewController;
@property(nonatomic, strong, readwrite) UIViewController *parentVC;
@property(nonatomic, assign) BOOL elementsHidden;
@property (nonatomic, strong) JGProgressHUD *hud;
@property (nonatomic, retain) NSString *fileextension;
- (void)addHandleLongPress;
- (void)handleLongPress:(UILongPressGestureRecognizer *)sender;
- (void)addHideElementButton;
- (void)hideElementButtonHandler:(UIButton *)sender;
@end
@interface AWEFeedViewTemplateCell () <BHDownloadDelegate, BHMultipleDownloadDelegate>
@end
@interface AWEFeedViewCell: AWEFeedViewTemplateCell
@end
@interface AWEAwemeDetailTableViewCell: UITableViewCell
@property(nonatomic, strong, readwrite) UIViewController *viewController;
@property(nonatomic, strong, readwrite) UIViewController *parentVC;
@property(nonatomic, assign) BOOL elementsHidden;
@property (nonatomic, strong) JGProgressHUD *hud;
@property (nonatomic, retain) NSString *fileextension;
- (void)addHandleLongPress;
- (void)handleLongPress:(UILongPressGestureRecognizer *)sender;
- (void)addHideElementButton;
- (void)hideElementButtonHandler:(UIButton *)sender;
@end
@interface AWEAwemeDetailTableViewCell () <BHDownloadDelegate>
@end
@interface TTKStoryDetailTableViewCell: UITableViewCell
@property(nonatomic, strong, readwrite) UIViewController *viewController;
@property(nonatomic, strong, readwrite) UIViewController *parentVC;
@property(nonatomic, assign) BOOL elementsHidden;
@property (nonatomic, strong) JGProgressHUD *hud;
@property (nonatomic, retain) NSString *fileextension;
- (void)addHandleLongPress;
- (void)handleLongPress:(UILongPressGestureRecognizer *)sender;
- (void)addHideElementButton;
- (void)hideElementButtonHandler:(UIButton *)sender;
@end
@interface TTKStoryDetailTableViewCell () <BHDownloadDelegate>
@end
@interface TTKFeedPassthroughStackView: UIStackView
@end
@interface TUXActionSheetAction: NSObject
@property(nonatomic) NSString *title;
@property(nonatomic) NSString *subtitle;
@property(nonatomic) NSString *imageLabel;
@property(nonatomic) UIImage *image;
- (instancetype)initWithStyle:(NSUInteger)style title:(NSString *)title subtitle:(NSString *)subtitle image:(UIImage *)image imageLabel:(NSString *)imageLabel handler:(void (^ __nullable)(TUXActionSheetAction *action))handler;
@end
@interface TUXActionSheetController: UIViewController
@property(nonatomic, assign, readwrite) BOOL dismissOnDraggingDown;
@property(nonatomic, strong, readwrite) UITableView *tableView;
- (instancetype)initWithTitle:(NSString *)title;
- (void)addAction:(TUXActionSheetAction *)action;
@end
@interface AWEUIAlertView: UIView
+ (void)showAlertWithTitle:(NSString *)title description:(NSString *)description image:(UIImage *)image actionButtonTitle:(NSString *)actionButtonTitle cancelButtonTitle:(NSString *)cancelButtonTitle actionBlock:(void (^)(void))actionBlock cancelBlock:(void (^)(void))cancelBlock;
@end
@interface AWEToast: NSObject
+ (void)showSuccess:(NSString *)title;
@end
@interface AWEPlayVideoPlayerController : NSObject
@property(nonatomic) AWEAwemeBaseViewController *container;
- (void)setPlayerSeekTime:(double)arg1 completion:(id)arg2;
@end
@interface TTKSearchEntranceButton: UIButton
@end
@interface AWEFeedContainerViewController: UIViewController
@property(nonatomic, strong, readwrite) TTKSearchEntranceButton *searchEntranceView;
@end
@interface AWENewFeedTableViewController : UIViewController
@property(nonatomic, weak, readwrite) UIViewController *tabContainerController;
- (void)scrollToNextVideo;
@end
static BOOL is_iPad() {
if ([(NSString *)[UIDevice currentDevice].model hasPrefix:@"iPad"]) {
return YES;
}
return NO;
}
static UIViewController * _Nullable _topMostController(UIViewController * _Nonnull cont) {
UIViewController *topController = cont;
while (topController.presentedViewController) {
topController = topController.presentedViewController;
}
if ([topController isKindOfClass:[UINavigationController class]]) {
UIViewController *visible = ((UINavigationController *)topController).visibleViewController;
if (visible) {
topController = visible;
}
}
return (topController != cont ? topController : nil);
}
static UIViewController * _Nonnull topMostController() {
UIViewController *topController = [UIApplication sharedApplication].keyWindow.rootViewController;
UIViewController *next = nil;
while ((next = _topMostController(topController)) != nil) {
topController = next;
}
return topController;
}