added files via upload

This commit is contained in:
Balackburn
2023-06-27 09:54:41 +02:00
commit 2ff6aac218
1420 changed files with 88898 additions and 0 deletions

2
Tweaks/YouTubeHeader/.gitattributes vendored Normal file
View File

@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto

2
Tweaks/YouTubeHeader/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.DS_Store

View File

@@ -0,0 +1,4 @@
#import <Foundation/Foundation.h>
@interface ASCollectionElement : NSObject
@end

View File

@@ -0,0 +1,4 @@
#import <UIKit/UIKit.h>
@interface ASCollectionView : UICollectionView
@end

View File

@@ -0,0 +1,4 @@
#import "ASDisplayNode.h"
@interface ASControlNode : ASDisplayNode
@end

View File

@@ -0,0 +1,21 @@
#import <UIKit/UIKit.h>
#import "ASLayoutElementStyleYoga.h"
@interface ASDisplayNode : NSObject
@property (atomic, copy, readwrite) NSArray *yogaChildren;
@property (nonatomic, copy, readwrite) NSString *accessibilityIdentifier;
@property (atomic, weak, readonly) ASDisplayNode *yogaParent;
@property (atomic, strong, readwrite) id contents;
@property (atomic, assign, readwrite) CGFloat alpha;
@property (atomic, assign, readwrite) CGRect frame;
@property (atomic, assign, readwrite) CGRect bounds;
@property (atomic, assign, readonly) unsigned char interfaceState;
@property (atomic, assign, readwrite, getter=isHidden) BOOL hidden;
@property (atomic, assign, readwrite, getter=isLayerBacked) BOOL layerBacked;
@property (atomic, assign, readwrite) BOOL automaticallyManagesSubnodes;
- (id)controller;
- (ASLayoutElementStyleYoga *)style;
- (UIViewController *)closestViewController;
- (UIView *)view;
- (BOOL)isNodeLoaded;
@end

View File

@@ -0,0 +1,8 @@
#import <Foundation/Foundation.h>
@interface ASLayoutElementStyleYoga : NSObject
@property (nonatomic, assign, readwrite) CGFloat spacingBefore;
@property (nonatomic, assign, readwrite) CGFloat spacingAfter;
@property (nonatomic, assign, readwrite) CGFloat flexGrow;
@property (nonatomic, assign, readwrite) CGFloat flexShrink;
@end

View File

@@ -0,0 +1,6 @@
#import <Foundation/Foundation.h>
@interface ASNodeContext : NSObject
- (instancetype)initWithOptions:(unsigned char)options;
- (unsigned char)options;
@end

View File

@@ -0,0 +1,4 @@
#import <Foundation/Foundation.h>
@interface ASNodeController : NSObject
@end

View File

@@ -0,0 +1,5 @@
#import "ASControlNode.h"
@interface ASTextNode : ASControlNode <UIGestureRecognizerDelegate>
@property (atomic, copy, readwrite) NSAttributedString *attributedText;
@end

View File

@@ -0,0 +1,6 @@
#import "ASCellNode.h"
#import "ELMElement.h"
@interface ELMCellNode : ASCellNode
@property (atomic, strong, readwrite) ELMElement *element;
@end

View File

@@ -0,0 +1,8 @@
#import "ELMElement.h"
#import "ASDisplayNode.h"
@interface ELMContainerNode : ASDisplayNode
@property (atomic, strong, readwrite) ELMElement *element;
- (void)addYogaChild:(id)child;
- (void)addSubnode:(id)subnode;
@end

View File

@@ -0,0 +1,6 @@
#import <Foundation/Foundation.h>
@interface ELMElement : NSObject
- (id)newChildElementWithInstance:(const void *)instance;
- (const void *)instance;
@end

View File

@@ -0,0 +1,5 @@
#import "ASNodeController.h"
@interface ELMNodeController : ASNodeController
- (const void *)materializationContext;
@end

View File

@@ -0,0 +1,6 @@
#import <Foundation/Foundation.h>
@interface ELMNodeFactory : NSObject
+ (instancetype)sharedInstance;
- (id)nodeWithElement:(id)element materializationContext:(const void *)context;
@end

View File

@@ -0,0 +1,7 @@
#import "ASTextNode.h"
#import "ELMElement.h"
@interface ELMTextNode : ASTextNode
@property (atomic, strong, readwrite) ELMElement *element;
- (instancetype)initWithElement:(ELMElement *)element context:(id)context;
@end

View File

@@ -0,0 +1,6 @@
#import <Foundation/Foundation.h>
@interface GIMBindingBuilder : NSObject
- (instancetype)bindType:(Class)typeClass;
- (instancetype)initializedWith:(id (^)(id))block;
@end

View File

@@ -0,0 +1,8 @@
#import <Foundation/Foundation.h>
@interface GIMMe : NSObject
+ (instancetype)gimme;
- (instancetype)allocOf:(Class)cls;
- (id)nullableInstanceForType:(id)type;
- (id)instanceForType:(id)type;
@end

View File

@@ -0,0 +1,19 @@
#import "GOOModalView.h"
@interface GOOAlertView : GOOModalView
@property (nonatomic, copy, readwrite) NSString *title;
@property (nonatomic, readonly, strong) UILabel *titleLabel;
@property (nonatomic, copy, readwrite) NSString *subtitle;
@property (nonatomic, readonly, strong) UILabel *subtitleLabel;
@property (nonatomic, readwrite, copy) UIImage *icon;
+ (instancetype)dialog;
+ (instancetype)infoDialog;
+ (instancetype)confirmationDialog;
+ (instancetype)confirmationDialogWithAction:(void (^)(void))action actionTitle:(NSString *)actionTitle;
+ (instancetype)confirmationDialogWithAction:(void (^)(void))action actionTitle:(NSString *)actionTitle cancelTitle:(NSString *)cancelTitle;
+ (instancetype)confirmationDialogWithAction:(void (^)(void))action actionTitle:(NSString *)actionTitle cancelAction:(void (^)(void))cancelAction cancelTitle:(NSString *)cancelTitle;
+ (instancetype)confirmationDialogWithSelector:(SEL)selector actionTitle:(NSString *)actionTitle;
+ (instancetype)confirmationDialogWithSelector:(SEL)selector actionTitle:(NSString *)actionTitle showsCancelButton:(BOOL)showsCancelButton;
- (void)addCancelButton:(SEL)selector;
- (void)addCancelButtonWithAction:(void (^)(void))action;
@end

View File

@@ -0,0 +1,18 @@
#import <UIKit/UIKit.h>
@interface GOOModalView : UIView
@property (nonatomic, readwrite, weak) id target;
@property (nonatomic, readwrite, assign) BOOL shouldDismissOnBackgroundTap;
@property (nonatomic, readwrite, assign) BOOL shouldDismissOnApplicationBackground;
- (instancetype)initWithTarget:(id)target;
- (void)addTitle:(NSString *)title withAction:(void (^)(void))action;
- (void)addTitle:(NSString *)title withDestructiveAction:(void (^)(void))action;
- (void)addTitle:(NSString *)title withSelector:(SEL)selector;
- (void)addTitle:(NSString *)title withCancelSelector:(SEL)cancelSelector;
- (void)addTitle:(NSString *)title withDestructiveSelector:(SEL)cancelSelector;
- (void)addTitle:(NSString *)title iconImage:(UIImage *)iconImage withAction:(void (^)(void))action;
- (void)addTitle:(NSString *)title iconImage:(UIImage *)iconImage withSelector:(SEL)selector;
- (void)show;
- (void)cancel;
- (void)dismiss;
@end

View File

@@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface GPBExtensionDescriptor : NSObject
- (Class)msgClass;
@end

View File

@@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface GPBExtensionRegistry : NSObject
- (void)addExtension:(id)extension;
@end

View File

@@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface GPBMessage : NSObject
- (id)firstSubmessage;
@end

View File

@@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface HAMAsyncVTVideoDecoder : NSObject
- (instancetype)initWithDelegate:(id)delegate delegateQueue:(id)delegateQueue decodeQueue:(id)decodeQueue formatDescription:(id)formatDescription pixelBufferAttributes:(id)pixelBufferAttributes;
@end

View File

@@ -0,0 +1,6 @@
#import <Foundation/Foundation.h>
@interface HAMMIMEType : NSObject
- (unsigned int)audioCodec;
- (unsigned int)videoCodec;
@end

View File

@@ -0,0 +1,2 @@
@protocol HAMPixelBufferRenderingView
@end

View File

@@ -0,0 +1,5 @@
#import <AVKit/AVKit.h>
@interface HAMSBDLSampleBufferRenderingView : UIView
@property (retain, nonatomic, readonly) AVSampleBufferDisplayLayer *displayLayer;
@end

View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 - 2022 PoomSmart
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface MLABRPolicy : NSObject
- (void)requestFormatReselection;
@end

View File

@@ -0,0 +1,5 @@
#import "MLFormat.h"
@interface MLABRPolicyFormatData : NSObject
- (instancetype)initWithFormat:(MLFormat *)format;
@end

View File

@@ -0,0 +1,5 @@
#import "MLABRPolicy.h"
// YouTube 17.30.3 and higher
@interface MLABRPolicyNew : MLABRPolicy
@end

View File

@@ -0,0 +1,5 @@
#import "MLABRPolicy.h"
// YouTube 17.30.3 and higher
@interface MLABRPolicyOld : MLABRPolicy
@end

View File

@@ -0,0 +1,5 @@
#import <AVKit/AVKit.h>
@interface MLAVAssetPlayer : NSObject
- (AVPlayerItem *)playerItem;
@end

View File

@@ -0,0 +1,8 @@
#import "MLAVPlayerLayerView.h"
#import "MLAVPlayer.h"
#import "MLAVPlayerViewDelegate.h"
@interface MLAVPIPPlayerLayerView : MLAVPlayerLayerView
@property (nonatomic, readonly, strong) AVPlayerLayer *playerLayer;
@property (nonatomic, readwrite, weak) NSObject <MLAVPlayerViewDelegate> *delegate;
@end

View File

@@ -0,0 +1,15 @@
#import "MLAVAssetPlayer.h"
#import "MLInnerTubePlayerConfig.h"
#import "MLPlayerViewProtocol.h"
#import "MLPlayerStickySettings.h"
@interface MLAVPlayer : NSObject
@property (nonatomic, readwrite, assign) BOOL active;
@property (nonatomic, readonly, assign) BOOL externalPlaybackActive;
@property (nonatomic, readwrite, assign) float rate;
@property (nonatomic, readonly, strong) MLVideo *video;
@property (nonatomic, readonly, strong) MLInnerTubePlayerConfig *config;
@property (nonatomic, readonly, strong) MLAVAssetPlayer *assetPlayer;
@property (nonatomic, readwrite, strong) UIView <MLPlayerViewProtocol> *renderingView;
- (instancetype)initWithVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)playerConfig stickySettings:(MLPlayerStickySettings *)stickySettings externalPlaybackActive:(BOOL)externalPlaybackActive;
@end

View File

@@ -0,0 +1,5 @@
#import "MLPlayerViewProtocol.h"
#import "HAMPixelBufferRenderingView.h"
@interface MLAVPlayerLayerView : UIView <MLPlayerViewProtocol, HAMPixelBufferRenderingView>
@end

View File

@@ -0,0 +1,6 @@
#import <Foundation/Foundation.h>
@protocol MLAVPlayerViewDelegate <NSObject>
@required
- (void)playerViewErrorDidOccur:(id)arg1;
@end

View File

@@ -0,0 +1,10 @@
#include "GIMMe.h"
#import "MLVideo.h"
#import "MLInnerTubePlayerConfig.h"
#import "MLAVPlayerLayerView.h"
@interface MLDefaultPlayerViewFactory : NSObject
@property (nonatomic, weak, readwrite) GIMMe *gimme;
- (BOOL)canUsePlayerView:(UIView *)playerView forVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)config;
- (MLAVPlayerLayerView *)AVPlayerViewForVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)config;
@end

View File

@@ -0,0 +1,17 @@
#import <CoreGraphics/CoreGraphics.h>
#import "HAMMIMEType.h"
#import "YTIFormatStream.h"
@interface MLFormat : NSObject <NSCopying>
- (HAMMIMEType *)MIMEType;
- (YTIFormatStream *)formatStream;
- (NSURL *)URL;
- (int)width;
- (int)height;
- (int)singleDimensionResolution;
- (CGFloat)FPS;
- (BOOL)isAudio;
- (BOOL)isVideo;
- (BOOL)isText;
- (NSInteger)compareByQuality:(MLFormat *)format;
@end

View File

@@ -0,0 +1,7 @@
#import "MLVideo.h"
#import "MLInnerTubePlayerConfig.h"
#import "MLPlayerStickySettings.h"
@interface MLHAMPlayer : NSObject
- (instancetype)initWithVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)playerConfig stickySettings:(MLPlayerStickySettings *)stickySettings playerViewProvider:(id)playerViewProvider;
@end

View File

@@ -0,0 +1,8 @@
#import "MLABRPolicy.h"
#import "MLFormat.h"
#import "MLInnerTubePlayerConfig.h"
@interface MLHAMPlayerItem : NSObject
@property (nonatomic, readonly, strong) MLInnerTubePlayerConfig *config;
- (void)ABRPolicy:(MLABRPolicy *)policy selectableFormatsDidChange:(NSArray <MLFormat *> *)formats;
@end

View File

@@ -0,0 +1,7 @@
#import "MLVideo.h"
#import "MLInnerTubePlayerConfig.h"
@protocol MLHAMPlayerViewProtocol
- (void)makeActivePlayer;
- (void)setVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)playerConfig;
@end

View File

@@ -0,0 +1,4 @@
#import "MLHAMPlayer.h"
@interface MLHAMQueuePlayer : MLHAMPlayer
@end

View File

@@ -0,0 +1,4 @@
#import "HAMSBDLSampleBufferRenderingView.h"
@interface MLHAMSBDLSampleBufferRenderingView : HAMSBDLSampleBufferRenderingView
@end

View File

@@ -0,0 +1,7 @@
#import "YTIMediaCommonConfig.h"
#import "YTIHamplayerConfig.h"
@interface MLInnerTubePlayerConfig : NSObject
@property (nonatomic, readonly, strong) YTIMediaCommonConfig *mediaCommonConfig;
@property (nonatomic, readonly, strong) YTIHamplayerConfig *hamplayerConfig;
@end

View File

@@ -0,0 +1,4 @@
#import <Foundation/Foundation.h>
@interface MLOnesieVideoData : NSObject
@end

View File

@@ -0,0 +1,24 @@
#import <AVKit/AVKit.h>
#import "MLAVPIPPlayerLayerView.h"
#import "MLHAMSBDLSampleBufferRenderingView.h"
@interface MLPIPController : NSObject <AVPictureInPictureControllerDelegate, AVPictureInPictureSampleBufferPlaybackDelegate>
@property (nonatomic, strong, readwrite) MLAVPIPPlayerLayerView *AVPlayerView;
@property (nonatomic, strong, readwrite) MLHAMSBDLSampleBufferRenderingView *HAMPlayerView;
- (instancetype)initWithPlaceholderPlayerItem:(AVPlayerItem *)playerItem; // Deprecated
- (instancetype)initWithPlaceholderPlayerItemResourcePath:(NSString *)placeholderPath; // Deprecated
- (AVPictureInPictureControllerContentSource *)newContentSource API_AVAILABLE(ios(15.0));
- (BOOL)isPictureInPictureSupported;
- (BOOL)isPictureInPictureActive; // Deprecated
- (BOOL)pictureInPictureActive;
- (BOOL)contentSourceNeedsRefresh;
- (CGSize)renderSizeForView:(UIView *)view;
- (BOOL)startPictureInPicture; // Deprecated
- (void)stopPictureInPicture; // Deprecated
- (void)addPIPControllerObserver:(id)observer;
- (void)activatePiPController;
- (void)deactivatePiPController;
- (void)pictureInPictureControllerStartPlayback;
- (void)pictureInPictureControllerStopPlayback;
- (void)pause;
@end

View File

@@ -0,0 +1,8 @@
#import "GIMMe.h"
#import "MLVideo.h"
#import "MLInnerTubePlayerConfig.h"
@interface MLPlayerPool : NSObject
@property (nonatomic, weak, readwrite) GIMMe *gimme;
- (void)createHamResourcesForVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)playerConfig;
@end

View File

@@ -0,0 +1,4 @@
#import <Foundation/Foundation.h>
@interface MLPlayerPoolImpl : NSObject
@end

View File

@@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface MLPlayerStickySettings : NSObject
@property (assign) float rate;
@end

View File

@@ -0,0 +1,7 @@
#import "MLVideo.h"
#import "MLInnerTubePlayerConfig.h"
@protocol MLPlayerViewProtocol
- (void)makeActivePlayer;
- (void)setVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)playerConfig;
@end

View File

@@ -0,0 +1,4 @@
#import <Foundation/Foundation.h>
@interface MLQOEPingController : NSObject
@end

View File

@@ -0,0 +1,6 @@
#import "YTIFormatStream.h"
#import "MLFormat.h"
@interface MLRemoteStream : MLFormat
+ (instancetype)streamWithFormatStream:(YTIFormatStream *)formatStream;
@end

View File

@@ -0,0 +1,5 @@
#import "MLRemoteStream.h"
@interface MLStreamingData : NSObject
- (NSArray <MLRemoteStream *> *)adaptiveStreams;
@end

View File

@@ -0,0 +1,7 @@
#import "MLStreamingData.h"
#import "YTIVideoDetails.h"
@interface MLVideo : NSObject
- (MLStreamingData *)streamingData;
- (YTIVideoDetails *)videoDetails;
@end

View File

@@ -0,0 +1,4 @@
#import <Foundation/Foundation.h>
@interface MLVideoDecoderFactory : NSObject
@end

View File

@@ -0,0 +1,6 @@
#import <UIKit/UIKit.h>
@interface QTMIcon : NSObject
+ (UIImage *)imageWithName:(NSString *)name color:(UIColor *)color;
+ (UIImage *)tintImage:(UIImage *)image color:(UIColor *)color;
@end

View File

@@ -0,0 +1,3 @@
# YouTubeHeader
Headers for iOS YouTube app.

View File

@@ -0,0 +1,5 @@
#import "ASDisplayNode.h"
@interface UIView (AsyncDisplayKit)
- (void)addSubnode:(ASDisplayNode *)subnode;
@end

View File

@@ -0,0 +1,5 @@
#import <UIKit/UIKit.h>
@interface UIView (YouTube)
- (BOOL)yt_isVisible;
@end

View File

@@ -0,0 +1,8 @@
#import <UIKit/UIKit.h>
@interface YTActionSheetAction : NSObject
+ (instancetype)actionWithTitle:(NSString *)title style:(NSInteger)style handler:(void (^)(YTActionSheetAction *))handler;
+ (instancetype)actionWithTitle:(NSString *)title iconImage:(UIImage *)iconImage style:(NSInteger)style handler:(void (^)(YTActionSheetAction *))handler;
+ (instancetype)actionWithTitle:(NSString *)title subtitle:(NSString *)subtitle iconImage:(UIImage *)iconImage handler:(void (^)(YTActionSheetAction *))handler;
+ (instancetype)actionWithTitle:(NSString *)title subtitle:(NSString *)subtitle iconImage:(UIImage *)iconImage accessibilityIdentifier:(NSString *)accessibilityIdentifier handler:(void (^)(YTActionSheetAction *))handler;
@end

View File

@@ -0,0 +1,7 @@
#import <UIKit/UIKit.h>
@interface YTActionSheetController : NSObject
+ (instancetype)actionSheetController;
- (void)addCancelActionIfNeeded;
- (void)presentFromViewController:(UIViewController *)viewController animated:(BOOL)animated completion:(void (^)(void))completion;
@end

View File

@@ -0,0 +1,6 @@
#import "GOOAlertView.h"
@interface YTAlertView : GOOAlertView
+ (instancetype)yt_dialog;
- (void)removeDefaultPadding;
@end

View File

@@ -0,0 +1,4 @@
#import <UIKit/UIKit.h>
@interface YTAppDelegate : UIResponder
@end

View File

@@ -0,0 +1,4 @@
#import <Foundation/Foundation.h>
@interface YTAppSettingsSectionItemActionController : NSObject
@end

View File

@@ -0,0 +1,9 @@
#import <Foundation/Foundation.h>
@interface YTAppSettingsStore : NSObject
+ (NSUInteger)valueTypeForSetting:(int)setting;
- (void)setValue:(NSNumber *)value forSetting:(int)setting;
- (void)setBool:(BOOL)value forSetting:(int)setting;
- (NSNumber *)valueForSetting:(int)setting;
- (BOOL)boolForSetting:(int)setting;
@end

View File

@@ -0,0 +1,4 @@
#import "ASCollectionView.h"
@interface YTAsyncCollectionView : ASCollectionView
@end

View File

@@ -0,0 +1,4 @@
#import <Foundation/Foundation.h>
@interface YTAutonavEndscreenController : NSObject
@end

View File

@@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface YTBackgroundabilityPolicy : NSObject
- (void)addBackgroundabilityPolicyObserver:(id)observer;
@end

View File

@@ -0,0 +1,6 @@
#import <Foundation/Foundation.h>
#import "YTCollectionViewCellProtocol.h"
@interface YTCellController : NSObject
@property (nonatomic, weak, readwrite) UICollectionViewCell <YTCollectionViewCellProtocol> *cell;
@end

View File

@@ -0,0 +1,4 @@
#import <Foundation/Foundation.h>
@interface YTColdConfig : NSObject
@end

View File

@@ -0,0 +1,5 @@
#import "YTSlideForActionsView.h"
@interface YTCollectionViewCell : UICollectionViewCell
@property (nonatomic, strong, readwrite) YTSlideForActionsView *slideForActionsView;
@end

View File

@@ -0,0 +1,2 @@
@protocol YTCollectionViewCellProtocol
@end

View File

@@ -0,0 +1,8 @@
#import <UIKit/UIKit.h>
@interface YTColor : NSObject
+ (UIColor *)white1;
+ (UIColor *)black1;
+ (UIColor *)black2;
+ (UIColor *)black3;
@end

View File

@@ -0,0 +1,67 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
// Deprecated, use YTCommonColorPalette
@interface YTColorPalette : NSObject
+ (instancetype)lightPalette;
+ (instancetype)darkPalette;
+ (instancetype)colorPaletteForPageStyle:(NSInteger)pageStyle;
- (NSInteger)pageStyle;
- (UIColor *)background1;
- (UIColor *)background2;
- (UIColor *)background3;
- (UIColor *)brandBackgroundSolid;
- (UIColor *)brandBackgroundPrimary;
- (UIColor *)brandBackgroundSecondary;
- (UIColor *)generalBackgroundA;
- (UIColor *)generalBackgroundB;
- (UIColor *)generalBackgroundC;
- (UIColor *)errorBackground;
- (UIColor *)textPrimary;
- (UIColor *)textSecondary;
- (UIColor *)textDisabled;
- (UIColor *)textPrimaryInverse;
- (UIColor *)callToAction;
- (UIColor *)iconActive;
- (UIColor *)iconActiveOther;
- (UIColor *)iconInactive;
- (UIColor *)iconDisabled;
- (UIColor *)badgeChipBackground;
- (UIColor *)buttonChipBackgroundHover;
- (UIColor *)touchResponse;
- (UIColor *)callToActionInverse;
- (UIColor *)brandIconActive;
- (UIColor *)brandIconInactive;
- (UIColor *)brandButtonBackground;
- (UIColor *)brandLinkText;
- (UIColor *)tenPercentLayer;
- (UIColor *)snackbarBackground;
- (UIColor *)themedBlue;
- (UIColor *)themedGreen;
- (UIColor *)staticBrandRed;
- (UIColor *)staticBrandWhite;
- (UIColor *)staticBrandBlack;
- (UIColor *)staticClearColor;
- (UIColor *)staticAdYellow;
- (UIColor *)staticGrey;
- (UIColor *)overlayBackgroundSolid;
- (UIColor *)overlayBackgroundHeavy;
- (UIColor *)overlayBackgroundMedium;
- (UIColor *)overlayBackgroundMediumLight;
- (UIColor *)overlayBackgroundLight;
- (UIColor *)overlayTextPrimary;
- (UIColor *)overlayTextSecondary;
- (UIColor *)overlayTextTertiary;
- (UIColor *)overlayIconActiveCallToAction;
- (UIColor *)overlayIconActiveOther;
- (UIColor *)overlayIconInactive;
- (UIColor *)overlayIconDisabled;
- (UIColor *)overlayFilledButtonActive;
- (UIColor *)overlayButtonSecondary;
- (UIColor *)overlayButtonPrimary;
- (UIColor *)overlayBackgroundBrand;
- (UIColor *)overlayBackgroundClear;
- (UIColor *)verifiedBadgeBackground;
- (UIColor *)themedOverlayBackground;
- (UIColor *)adIndicator;
@end

View File

@@ -0,0 +1,74 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
// YouTube 17.19.2 and higher
@interface YTCommonColorPalette : NSObject
+ (instancetype)lightPalette;
+ (instancetype)darkPalette;
- (NSInteger)pageStyle;
- (UIColor *)background1;
- (UIColor *)background2;
- (UIColor *)background3;
- (UIColor *)staticBlue;
- (UIColor *)brandBackgroundSolid;
- (UIColor *)brandBackgroundPrimary;
- (UIColor *)brandBackgroundSecondary;
- (UIColor *)generalBackgroundA;
- (UIColor *)generalBackgroundB;
- (UIColor *)generalBackgroundC;
- (UIColor *)errorBackground;
- (UIColor *)textPrimary;
- (UIColor *)textSecondary;
- (UIColor *)textDisabled;
- (UIColor *)textPrimaryInverse;
- (UIColor *)callToAction;
- (UIColor *)iconActive;
- (UIColor *)iconActiveOther;
- (UIColor *)iconInactive;
- (UIColor *)iconDisabled;
- (UIColor *)badgeChipBackground;
- (UIColor *)buttonChipBackgroundHover;
- (UIColor *)touchResponse;
- (UIColor *)callToActionInverse;
- (UIColor *)brandIconActive;
- (UIColor *)brandIconInactive;
- (UIColor *)brandButtonBackground;
- (UIColor *)brandLinkText;
- (UIColor *)tenPercentLayer;
- (UIColor *)snackbarBackground;
- (UIColor *)themedBlue;
- (UIColor *)themedGreen;
- (UIColor *)staticBrandRed;
- (UIColor *)staticBrandWhite;
- (UIColor *)staticBrandBlack;
- (UIColor *)staticClearColor;
- (UIColor *)staticAdYellow;
- (UIColor *)staticGrey;
- (UIColor *)overlayBackgroundSolid;
- (UIColor *)overlayBackgroundHeavy;
- (UIColor *)overlayBackgroundMedium;
- (UIColor *)overlayBackgroundMediumLight;
- (UIColor *)overlayBackgroundLight;
- (UIColor *)overlayTextPrimary;
- (UIColor *)overlayTextSecondary;
- (UIColor *)overlayTextTertiary;
- (UIColor *)overlayIconActiveCallToAction;
- (UIColor *)overlayIconActiveOther;
- (UIColor *)overlayIconInactive;
- (UIColor *)overlayIconDisabled;
- (UIColor *)overlayFilledButtonActive;
- (UIColor *)overlayButtonSecondary;
- (UIColor *)overlayButtonPrimary;
- (UIColor *)overlayBackgroundBrand;
- (UIColor *)overlayBackgroundClear;
- (UIColor *)verifiedBadgeBackground;
- (UIColor *)themedOverlayBackground;
- (UIColor *)adIndicator;
- (UIColor *)errorIndicator; // 17.52.1+
- (UIColor *)baseBackground; // 17.52.1+
- (UIColor *)raisedBackground; // 17.52.1+
- (UIColor *)menuBackground; // 17.52.1+
- (UIColor *)invertedBackground; // 17.52.1+
- (UIColor *)additiveBackground; // 17.52.1+
- (UIColor *)outline; // 17.52.1+
@end

View File

@@ -0,0 +1,14 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface YTCommonUtils : NSObject
+ (BOOL)isIPhoneWithNotch;
+ (BOOL)isIPad;
+ (BOOL)isSmallDevice;
+ (BOOL)isAppRunningInFullScreen;
+ (unsigned int)uniformRandomWithUpperBound:(unsigned int)upperBound;
+ (UIWindow *)mainWindow; // YTMainWindow
+ (NSBundle *)bundleForClass:(Class)cls;
+ (NSBundle *)resourceBundleForModuleName:(NSString *)module appBundle:(NSBundle *)appBundle;
+ (NSString *)hardwareModel;
@end

View File

@@ -0,0 +1,4 @@
#import "YTMainAppVideoPlayerOverlayView.h"
@interface YTContentVideoPlayerOverlayView : YTMainAppVideoPlayerOverlayView
@end

View File

@@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface YTELMContext : NSObject
- (id)parentResponder;
@end

View File

@@ -0,0 +1,5 @@
#import <UIKit/UIKit.h>
@interface YTEditResources : NSObject
+ (UIImage *)volumeControlsFeatureTabIconMuted:(BOOL)muted templateImage:(BOOL)templateImage;
@end

View File

@@ -0,0 +1,6 @@
#import <Foundation/Foundation.h>
@interface YTFullscreenEngagementActionBarButtonRenderer : NSObject
- (BOOL)isLikeButton;
- (BOOL)isDislikeButton;
@end

View File

@@ -0,0 +1,7 @@
#import "Block.h"
#import "YTIFormattedStringLabel.h"
@interface YTFullscreenEngagementActionBarButtonView : UIView
@property (nonatomic, assign, readwrite, getter=isToggled) BOOL toggled;
@property (nonatomic, strong, readwrite) YTIFormattedStringLabel *label;
@end

View File

@@ -0,0 +1,4 @@
#import <UIKit/UIKit.h>
@interface YTGlassContainerView : UIView
@end

View File

@@ -0,0 +1,4 @@
#import <Foundation/Foundation.h>
@interface YTGlobalConfig : NSObject
@end

View File

@@ -0,0 +1,9 @@
#import "YTIHotConfigGroup.h"
#import "YTIHamplayerHotConfig.h"
@interface YTHotConfig : NSObject
@property (atomic, strong, readwrite) YTIHotConfigGroup *hotConfigGroup;
- (YTIIosMediaHotConfig *)mediaHotConfig;
- (YTIHamplayerHotConfig *)hamplayerHotConfig;
- (BOOL)iosReleasePipControllerOnMain;
@end

View File

@@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface YTIAccessibilityData : NSObject
@property (nonatomic, copy, readwrite) NSString *label;
@end

View File

@@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface YTIBrowseEndpoint : NSObject
@property (nonatomic, copy, readwrite) NSString *browseId;
@end

View File

@@ -0,0 +1,12 @@
#import "GPBMessage.h"
@interface YTIBrowseRequest : GPBMessage
+ (NSString *)browseIDForExploreTab;
+ (NSString *)browseIDForAccountTab;
+ (NSString *)browseIDForActivityTab;
+ (NSString *)browseIDForHomeTab;
+ (NSString *)browseIDForLibraryTab;
+ (NSString *)browseIDForTrendingTab;
+ (NSString *)browseIDForSubscriptionsTab;
+ (NSString *)browseIDForWhatToWatch;
@end

View File

@@ -0,0 +1,15 @@
#import "YTICommand.h"
#import "YTIFormattedString.h"
#import "YTIIcon.h"
@interface YTIButtonRenderer : NSObject
@property (nonatomic, strong, readwrite) YTICommand *command;
@property (nonatomic, strong, readwrite) YTIIcon *icon;
@property (nonatomic, strong, readwrite) YTICommand *navigationEndpoint;
@property (nonatomic, copy, readwrite) NSString *targetId;
@property (nonatomic, strong, readwrite) YTIFormattedString *text;
@property (nonatomic, copy, readwrite) NSString *tooltip;
@property (nonatomic, assign, readwrite) int size;
@property (nonatomic, assign, readwrite) int style;
@property (nonatomic, assign, readwrite) BOOL isDisabled;
@end

View File

@@ -0,0 +1,7 @@
#import "YTIToggleButtonRenderer.h"
#import "YTIButtonRenderer.h"
@interface YTIButtonSupportedRenderers : NSObject
@property (nonatomic, strong, readwrite) YTIToggleButtonRenderer *toggleButtonRenderer;
@property (retain, nonatomic) YTIButtonRenderer *buttonRenderer;
@end

View File

@@ -0,0 +1,7 @@
#import "GPBMessage.h"
#import "YTIFormattedString.h"
@interface YTIChapterRenderer : GPBMessage
@property (nonatomic, readwrite, strong) YTIFormattedString *title;
@property (nonatomic, readwrite, assign) int timeRangeStartMillis;
@end

View File

@@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface YTIColorInfo : NSObject
@property (nonatomic, assign, readwrite) int transferCharacteristics;
@end

View File

@@ -0,0 +1,7 @@
#import "YTIReelWatchEndpoint.h"
#import "YTIBrowseEndpoint.h"
@interface YTICommand : NSObject
@property (nonatomic, readwrite, strong) YTIReelWatchEndpoint *reelWatchEndpoint;
@property (nonatomic, readwrite, strong) YTIBrowseEndpoint *browseEndpoint;
@end

View File

@@ -0,0 +1,6 @@
#import "YTIElementRendererCompatibilityOptions.h"
@interface YTIElementRenderer : GPBMessage
@property (nonatomic, strong, readwrite) YTIElementRendererCompatibilityOptions *compatibilityOptions;
@property (nonatomic, assign, readwrite) BOOL hasCompatibilityOptions;
@end

View File

@@ -0,0 +1,5 @@
#import "GPBMessage.h"
@interface YTIElementRendererCompatibilityOptions : GPBMessage
@property (nonatomic, assign, readwrite) BOOL hasAdLoggingData;
@end

View File

@@ -0,0 +1,6 @@
#import "YTIColorInfo.h"
@interface YTIFormatStream : NSObject
@property (nonatomic, strong, readwrite) YTIColorInfo *colorInfo;
@property (nonatomic, copy, readwrite) NSString *URL;
@end

View File

@@ -0,0 +1,8 @@
#import "YTIFormattedStringSupportedAccessibilityDatas.h"
@interface YTIFormattedString : NSObject
+ (instancetype)formattedStringWithString:(NSString *)string;
@property (nonatomic, strong, readwrite) NSMutableArray *runsArray;
@property (nonatomic, strong, readwrite) YTIFormattedStringSupportedAccessibilityDatas *accessibility;
- (NSString *)stringWithFormattingRemoved;
@end

View File

@@ -0,0 +1,7 @@
#import <UIKit/UIKit.h>
#import "YTIFormattedString.h"
@interface YTIFormattedStringLabel : UILabel
@property (nonatomic, copy, readwrite) NSAttributedString *attributedText;
- (void)setFormattedString:(YTIFormattedString *)string;
@end

View File

@@ -0,0 +1,5 @@
#import "YTIAccessibilityData.h"
@interface YTIFormattedStringSupportedAccessibilityDatas : NSObject
@property (nonatomic, strong, readwrite) YTIAccessibilityData *accessibilityData;
@end

View File

@@ -0,0 +1,5 @@
#import "YTIGuideResponseSupportedRenderers.h"
@interface YTIGuideResponse : NSObject
- (NSMutableArray <YTIGuideResponseSupportedRenderers *> *)itemsArray;
@end

Some files were not shown because too many files have changed in this diff Show More