Skip to content

Instantly share code, notes, and snippets.

@therealFoxster
Created May 24, 2023 03:40
Show Gist options
  • Save therealFoxster/125b93a16de369f0ea49138b0f62b3a3 to your computer and use it in GitHub Desktop.
Save therealFoxster/125b93a16de369f0ea49138b0f62b3a3 to your computer and use it in GitHub Desktop.
Some of uYou's header files
#import "uYouItem.h"
@interface DownloadItem : NSObject <NSCoding>
@property (nonatomic, readwrite, strong) NSString *downloadIdentifier;
@property (nonatomic, readwrite, strong) NSString *videoID;
@property (nonatomic, readwrite, strong) NSString *filePath;
@property (nonatomic, readwrite, strong) NSURL *remoteURL;
@property (nonatomic, readwrite, strong) uYouItem *uYouItem;
@property (nonatomic, readwrite, assign) int type;
@property (nonatomic, readwrite, strong) NSURLSessionDownloadTask *downloadTask;
@property (nonatomic, readwrite, strong) NSDate *downloadStartDate;
@property (nonatomic, readwrite, assign) NSUInteger status;
@property (nonatomic, readwrite, strong) NSError *error;
@property (nonatomic, readwrite, assign) float progress;
@property (nonatomic, readwrite, strong) NSString *totalSize;
@property (nonatomic, readwrite, strong) NSString *downloadedSize;
@property (nonatomic, readwrite, strong) NSString *speed;
@property (nonatomic, readwrite, assign) int remainingTime;
- (id)initWithCoder:(id)coder;
- (void)encodeWithCoder:(id)coder;
- (id)initWithVideoID:(id)videoID
uYouItem:(id)uYouItem
downloadID:(id)downloadID
url:(id)url
filePath:(id)filePath
type:(int)type;
- (void)createDownloadTask;
- (id)uYouItem;
- (void)setUYouItem:(id)uYouItem;
- (id)downloadedSize;
- (void)setDownloadedSize:(id)downloadedSize;
- (id)filePath;
- (void)setFilePath:(id)filePath;
- (int)remainingTime;
- (void)setRemainingTime:(int)remainingTime;
- (id)speed;
- (void)setSpeed:(id)speed;
// - (void).cxx_destruct;
- (id)error;
- (void)setError:(id)error;
- (int)type;
- (void)setType:(int)type;
- (NSUInteger)status;
- (void)setStatus:(NSUInteger)status;
- (float)progress;
- (void)setProgress:(float)progress;
- (id)filePath;
- (void)setFilePath:(id)filePath;
- (id)remoteURL;
- (void)setRemoteURL:(id)remoteURL;
- (id)totalSize;
- (void)setTotalSize:(id)totalSize;
- (id)downloadTask;
- (void)setDownloadTask:(id)downloadTask;
- (id)downloadStartDate;
- (void)setDownloadStartDate:(id)downloadStartDate;
- (id)downloadIdentifier;
- (void)setDownloadIdentifier:(id)downloadIdentifier;
- (id)videoID;
- (void)setVideoID:(id)videoID;
+ (id)new;
+ (id)alloc;
@end
#import "uYouPanGestureRecognizer.h"
@interface uYouInsideViewGesture : uYouPanGestureRecognizer
@property (nonatomic, readwrite, assign) BOOL isBlacklistedInput;
@property (nonatomic, readwrite, assign) BOOL isCurrentlySelecting;
@property (nonatomic, readwrite, assign) BOOL isStarted;
@property (nonatomic, readwrite, assign) BOOL isStartedFromTop;
@property (nonatomic, readwrite, assign) BOOL fadeKeyboard;
@property (nonatomic, readwrite, assign) NSUInteger currentPoint;
@property (nonatomic, readwrite, assign) NSUInteger previousPoint;
@property (nonatomic, readwrite, assign) CGFloat startedScale;
@property (nonatomic, readwrite, assign) NSUInteger gestureSpeed;
@property (nonatomic, readwrite, strong) id keyboardDelegate;
@property (nonatomic, readwrite, strong) id currentLayout;
@property (nonatomic, readwrite, strong) UITextPosition *pivotPoint;
@property (nonatomic, readwrite, strong) UITextPosition *movingPosition;
- (BOOL)isCursorMovementLeft;
- (BOOL)isCursorMovementRight;
- (BOOL)isStartedFromTop;
- (void)setIsStartedFromTop:(BOOL)isStartedFromTop;
- (BOOL)fadeKeyboard;
- (void)setFadeKeyboard:(BOOL)fadeKeyboard;
- (CGFloat)startedScale;
- (void)setStartedScale:(CGFloat)startedScale;
- (NSUInteger)gestureSpeed;
- (void)setGestureSpeed:(NSUInteger)gestureSpeed;
- (id)pivotPoint;
- (void)setPrivotPoint:(id)pivotPoint;
- (id)movingPosition;
- (void)setMovingPosition:(id)movingPosition;
- (id)isBlacklistedInput;
- (void)setIsBlacklistedInput:(BOOL)isBlacklistedInput;
- (BOOL)isCurrentlySelecting;
- (void)setIsCurrentlySelecting:(BOOL)isCurrentlySelecting;
- (BOOL)isStarted;
- (void)setIsStarted:(BOOL)isStarted;
- (id)currentLayout;
- (void)setCurrentLayout:(id)currentLayout;
- (id)keyboardDelegate;
- (void)setKeyboardDelegate:(id)keyboardDelegate;
- (NSUInteger)currentPoint;
- (void)setCurrentPoint:(NSUInteger)currentLayout;
- (NSUInteger)previousPoint;
- (void)setPreviousPoint:(NSUInteger)previousPoint;
- (BOOL)hasSelection;
- (void)started;
+ (id)new;
+ (id)alloc;
@end
#import <UIKit/UIKit.h>
#import "DownloadItem.h"
@interface uYouItem : NSObject <NSCoding>
@property (nonatomic, readwrite, strong) NSString *downloadIdentifier;
@property (nonatomic, readwrite, strong) NSString *videoID;
@property (nonatomic, readwrite, strong) NSString *title;
@property (nonatomic, readwrite, strong) NSString *channel;
@property (nonatomic, readwrite, strong) NSString *channelURL;
@property (nonatomic, readwrite, strong) NSString *quality;
@property (nonatomic, readwrite, strong) NSString *qualityLabel;
@property (nonatomic, readwrite, strong) NSString *typeAndQuality;
@property (nonatomic, readwrite, strong) NSString *audioFormat;
@property (nonatomic, readwrite, strong) NSString *videoFormat;
@property (nonatomic, readwrite, strong) NSString *audioURL;
@property (nonatomic, readwrite, strong) NSString *videoURL;
@property (nonatomic, readwrite, strong) DownloadItem *audioItem;
@property (nonatomic, readwrite, strong) DownloadItem *videoItem;
@property (nonatomic, readwrite, strong) UIImage *image;
@property (nonatomic, readwrite, assign) int type;
@property (nonatomic, readwrite, assign) BOOL isConverting;
@property (nonatomic, readwrite, assign) BOOL isFinished;
@property (nonatomic, readwrite, assign) int conversionPercentage;
@property (nonatomic, readwrite, strong) NSString *conversionInfoText;
- (id)quality;
- (void)setQuality:(id)quality;
- (id)qualityLabel;
- (void)setQualityLabel:(id)qualityLabel;
- (id)channelURL;
- (void)setChannelURL:(id)channelURL;
- (id)typeAndQuality;
- (void)setTypeAndQuality:(id)typeAndQuality;
- (id)audioItem;
- (void)setAudioItem:(id)audioItem;
- (id)videoItem;
- (void)setVideoItem:(id)videoItem;
- (BOOL)isConverting;
- (void)setIsConverting:(BOOL)isConverting;
- (id)conversionInfoText;
- (void)setConversionInfoText:(id)conversionInfoText;
- (id)channel;
- (void)setChannel:(id)channel;
- (int)type;
- (void)setType:(int)type;
- (id)title;
- (void)setTitle:(id)title;
- (id)image;
- (void)setImage:(id)image;
- (id)audioFormat;
- (void)setAudioFormat:(id)audioFormat;
- (id)videoFormat;
- (void)setVideoFormat:(id)videoFormat;
- (BOOL)isFinished;
- (void)setIsFinished:(BOOL)isFinished;
- (id)downloadIdentifier;
- (void)setDownloadIdentifier:(id)downloadIdentifier;
- (id)audioURL;
- (void)setAudioURL:(id)audioURL;
- (id)videoID;
- (void)setVideoID:(id)videoID;
- (id)videoURL;
- (void)setVideoURL:(id)videoURL;
- (BOOL)isMP4;
- (BOOL)isDownloadFinished;
- (id)path;
- (id)filePath;
- (id)tmpAudioPath;
- (id)tmpVideoPath;
- (id)tmpMKVPath;
- (id)tmpMP4Path;
- (id)thumbnailPath;
- (id)initWithWithRequestItem:(id)withRequestItem info:(id)info;
- (id)initWithCoder:(id)coder;
- (void)encodeWithCoder:(id)coder;
// - (void).cxx_destruct;
+ (id)new;
+ (id)alloc;
@end
#import <UIKit/UIKit.h>
@interface uYouPanGestureRecognizer : UIGestureRecognizer
@property (nonatomic, readwrite, assign) CGPoint initialLocationOnScreen;
@property (nonatomic, readwrite, assign) CGPoint initialScale;
@property (nonatomic, readwrite, assign) BOOL pressedLongEnough;
@property (nonatomic, readwrite, assign) BOOL verticalDirection;
@property (nonatomic, readwrite, assign) NSUInteger numberOfTapsRequired;
@property (nonatomic, readwrite, assign) NSUInteger numberOfTouchesRequired;
@property (nonatomic, readwrite, assign) CGFloat minimumPressDuration;
@property (nonatomic, readwrite, assign) CGFloat activateAfter;
@property (nonatomic, readwrite, assign) CGFloat scaleFactor;
@property (nonatomic, readwrite, assign) CGFloat scale;
@property (nonatomic, readwrite, assign) BOOL bouncesScale;
@property (nonatomic, readwrite, assign) CGFloat minimumScale;
@property (nonatomic, readwrite, assign) CGFloat maximumScale;
- (CGFloat)screenLocationXOfTouch:(id)touch;
- (CGFloat)screenLocationYOfTouch:(id)touch;
- (CGFloat)zoomRubberBandScaleForZoomScale:(CGFloat)zoomScale
minimumZoomScale:(CGFloat)minimumZoomScale
maximumZoomScale:(CGFloat)maximumZoomScale;
- (CGFloat)zoomScaleForRubberBandScale:(CGFloat)rubberBandScale
minimumZoomScale:(CGFloat)minimumZoomScale
maximumZoomScale:(CGFloat)maximumZoomScale;
- (BOOL)verticalDirection;
- (void)setVerticalDirection:(BOOL)verticalDirection;
- (CGFloat)activateAfter;
- (void)setActivateAfter:(CGFloat)activateAfter;
- (BOOL)bouncesScale;
- (void)setBouncesScale:(BOOL)bouncesScale;
- (id)initialLocationOnScreen;
- (void)setInitialLocationOnScreen:(CGPoint)initialLocationOnScreen;
- (BOOL)pressedLongEnough;
- (void)setPressedLongEnough:(BOOL)pressedLongEnough;
- (NSUInteger)numberOfTouchesRequired;
- (void)setNumberOfTouchesRequired:(NSUInteger)numberOfTouchesRequired;
- (NSUInteger)numberOfTapsRequired;
- (void)setNumberOfTapsRequired:(NSUInteger)numberOfTapsRequired;
- (CGFloat)minimumScale;
- (void)setMinimumScale:(CGFloat)minimumScale;
- (CGFloat)maximumScale;
- (void)setMaximumScale:(CGFloat)maximumScale;
- (CGFloat)initialScale;
- (void)setInitialScale:(CGFloat)initialScale;
- (CGFloat)scale;
- (void)setScale:(CGFloat)scale;
- (CGFloat)minimumPressDuration;
- (void)setMinimumPressDuration:(CGFloat)minimumPressDuration;
- (CGFloat)scaleFactor;
- (void)setScaleFactor:(CGFloat)scaleFactor;
+ (id)new;
+ (id)alloc;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment