選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Reddit.h 5.7KB

5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
5年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. /* ---- Reddit v3 & v4 ---- */
  2. /* -- Comment Interfaces -- */
  3. @interface Comment
  4. //v4
  5. @property(strong, nonatomic) id pk;
  6. @property(strong, nonatomic) NSString *bodyText;
  7. @property(strong, nonatomic) NSString *author;
  8. @property(strong, nonatomic) id bodyRichTextAttributed;
  9. @property(strong, nonatomic) id bodyAttributedText;
  10. //v3
  11. -(id)pkWithoutPrefix;
  12. @end
  13. @interface CommentsViewController : NSObject
  14. @property(strong, nonatomic) id postData;
  15. - (void)reloadCommentsWithNewCommentsHighlight:(BOOL)arg1 autoScroll:(BOOL)arg2 animated:(BOOL)arg3;
  16. - (void)reloadCommentsSection:(BOOL)arg1;
  17. - (void)reloadPostSection:(BOOL)arg1;
  18. - (void)feedPostViewDidUpdatePost:(id)arg1 shouldReloadFeed:(BOOL)arg2;
  19. - (void)updateFloatingViews;
  20. //custom elements
  21. - (void)updateComments;
  22. - (void)updatePostText;
  23. @end
  24. @interface CommentActionSheetViewController : UIViewController
  25. @property(strong, nonatomic) Comment *comment;
  26. @property(strong, nonatomic) id commentTreeNode;
  27. @property(strong, nonatomic) CommentsViewController *commentActionSheetDelegate;
  28. - (id)animationControllerForDismissedController:(id)arg1;
  29. @end
  30. /* ---- Reddit v4 ---- */
  31. /* -- Comment Interfaces -- */
  32. @interface CommentTreeNode
  33. @property(strong, nonatomic) Comment *comment;
  34. //custom elements
  35. @property(strong, nonatomic) id commentTreeHeaderNode;
  36. @property(strong, nonatomic) id commentTreeCommandBarNode;
  37. @end
  38. @interface CommentTreeDisplayNode
  39. @property(strong, nonatomic) id commentNode;
  40. @end
  41. @interface CommentTreeHeaderNode
  42. @property(strong, nonatomic) id commentTreeNode;
  43. - (void)updateContentViewsForData:(id)arg1;
  44. @end
  45. @interface CommentTreeCommandBarNode
  46. @property(strong, nonatomic) id commentTreeNode;
  47. @property(strong, nonatomic) id delegate;
  48. @property(strong, nonatomic) UIView *view;
  49. @property(strong, nonatomic) id overflowButtonNode;
  50. @property(assign, nonatomic) CGRect frame;
  51. @end
  52. @interface CommentTreeHeaderView
  53. @property(strong, nonatomic) id commentTreeNode;
  54. - (void)updateContentViewsForData:(id)arg1;
  55. @end
  56. /* -- Post Interfaces -- */
  57. @interface Post
  58. @property(strong, nonatomic) NSString *author;
  59. @property(strong, nonatomic) NSString *selfText;
  60. @property(strong, nonatomic) id selfTextAttributed;
  61. @property(strong, nonatomic) id selfPostRichTextAttributed;
  62. @property(strong, nonatomic) id previewFeedPostTextString;
  63. @property(assign, nonatomic) BOOL isSelfPost;
  64. @property(strong, nonatomic) NSString *pk;
  65. @end
  66. @interface PostDetailViewController
  67. @property(strong, nonatomic) id selfTextNode;
  68. - (void)configureSelfTextNode;
  69. //custom elements
  70. @property(strong, nonatomic) id feedPostTextWithThumbnailNode;
  71. @property(strong, nonatomic) id feedPostDetailCellNode;
  72. @end
  73. @interface PostActionSheetViewController : UIViewController
  74. @property(strong, nonatomic) Post *post;
  75. @property(strong, nonatomic) id postActionSheetDelegate;
  76. @end
  77. @interface PostDetailNavigationItemHandler
  78. @property(strong, nonatomic) id controller;
  79. @property(strong, nonatomic) id presenter;
  80. @end
  81. @interface FeedPostDetailCellNode
  82. @property(strong, nonatomic) id textNode;
  83. @property(strong, nonatomic) id delegate;
  84. @property(strong, nonatomic) id contentNode;
  85. @property(strong, nonatomic) id titleNode;
  86. @end
  87. @interface FeedPostTitleNode
  88. @property(strong, nonatomic) id delegate;
  89. - (void)configureNodes;
  90. @end
  91. @interface FeedPostDetailDelegator
  92. @property(strong, nonatomic) id viewController;
  93. @end
  94. @interface FeedPostContentNode
  95. - (void)configureSelfTextNode;
  96. @end
  97. /* -- Other Interfaces -- */
  98. @interface RichTextDisplayNode
  99. @property(strong, nonatomic) id attributedText;
  100. @end
  101. @interface RUIActionSheetItem : NSObject
  102. @property(strong, nonatomic) id leftIconImage;
  103. - (id)initWithLeftIconImage:(id)arg1 text:(id)arg2 identifier:(id)arg3 context:(id)arg4;
  104. @end
  105. @interface ActionSheetItem : NSObject
  106. // <= 4.17
  107. @property(strong, nonatomic) id leftIconImage;
  108. - (id) initWithLeftIconImage:(id)arg1 text:(id)arg2 identifier:(id)arg3 context:(id)arg4;
  109. @end
  110. @interface RUITheme
  111. @property(strong, nonatomic) id bodyTextColor;
  112. @end
  113. @interface NSAttributedStringMarkdownParser
  114. + (id)currentConfig;
  115. + (id)attributedStringUsingCurrentConfig:(id)arg1;
  116. - (id)attributedStringFromMarkdownString:(id)arg1;
  117. - (id)initWithConfig:(id)arg1;
  118. @end
  119. @interface ThemeManager
  120. + (id)sharedManager;
  121. // >= 4.45.0
  122. @property(strong, nonatomic) id darkTheme;
  123. @property(strong, nonatomic) id lightTheme;
  124. - (id)initWithAppSettings:(id)arg1;
  125. // < 4.45.0
  126. @property(strong, nonatomic) id dayTheme;
  127. @property(strong, nonatomic) id nightTheme;
  128. - (id)initWithTraitCollection:(id)arg1 appSettings:(id)arg2;
  129. @end
  130. // >= 2020.41.0
  131. @interface RUIThemeGuidance : NSObject
  132. @property(strong, nonatomic) RUITheme *currentTheme;
  133. + (id)sharedGuidance;
  134. @end
  135. @interface AppSettings
  136. + (id)sharedSettings;
  137. - (BOOL)useDarkMode;
  138. - (BOOL)isAutoDarkModeEnabled;
  139. @end
  140. @interface AccountManager
  141. @property(assign, nonatomic) id defaults;
  142. + (id)sharedManager;
  143. @end
  144. @interface AppDelegate : UIResponder
  145. @property(strong, nonatomic) AccountManager *accountManager;
  146. @end
  147. /* ---- Reddit v3 ---- */
  148. /* -- Comment Interfaces -- */
  149. @interface CommentCell : UIView
  150. - (id)delegate;
  151. - (id)comment;
  152. - (id)commentView;
  153. @end
  154. @interface CommentView
  155. - (void)configureSubviews;
  156. - (void)layoutSubviews;
  157. - (id)commandView;
  158. - (id)comment;
  159. - (id)delegate;
  160. @end
  161. @interface CommentCommandView
  162. @property (strong, nonatomic) id undeleteButton;
  163. - (id)overflowButton;
  164. - (id)comment;
  165. - (id)delegate;
  166. @end
  167. /* -- Other Interfaces -- */
  168. @interface MarkDownParser
  169. + (id)attributedStringFromMarkdownString:(id)arg1;
  170. @end
  171. @interface UITraitCollection ()
  172. + (id)_currentTraitCollection;
  173. @end