#import #import #import #import @class SSignal; @class SThreadPool; @protocol SDisposable; @class TGLocalization; @class UIViewController; @class TGWallpaperInfo; @class TGMemoryImageCache; @class TGImageMediaAttachment; @class TGNavigationBarPallete; @class TGMenuSheetPallete; @class TGMediaAssetsPallete; @class TGImageBorderPallete; @class TGCheckButtonPallete; typedef enum { TGAudioSessionTypePlayVoice, TGAudioSessionTypePlayMusic, TGAudioSessionTypePlayVideo, TGAudioSessionTypePlayEmbedVideo, TGAudioSessionTypePlayAndRecord, TGAudioSessionTypePlayAndRecordHeadphones, TGAudioSessionTypeCall } TGAudioSessionType; @protocol LegacyComponentsGlobalsProvider - (TGLocalization *)effectiveLocalization; - (void)log:(NSString *)string; - (NSArray *)applicationWindows; - (UIWindow *)applicationStatusBarWindow; - (UIWindow *)applicationKeyboardWindow; - (UIApplication *)applicationInstance; - (UIInterfaceOrientation)applicationStatusBarOrientation; - (CGRect)statusBarFrame; - (bool)isStatusBarHidden; - (void)setStatusBarHidden:(BOOL)hidden withAnimation:(UIStatusBarAnimation)animation; - (UIStatusBarStyle)statusBarStyle; - (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle animated:(BOOL)animated; - (void)forceStatusBarAppearanceUpdate; - (bool)canOpenURL:(NSURL *)url; - (void)openURL:(NSURL *)url; - (void)openURLNative:(NSURL *)url; - (void)disableUserInteractionFor:(NSTimeInterval)timeInterval; - (void)setIdleTimerDisabled:(bool)value; - (void)pauseMusicPlayback; - (NSString *)dataStoragePath; - (NSString *)dataCachePath; - (id)accessChecker; - (SSignal *)stickerPacksSignal; - (SSignal *)maskStickerPacksSignal; - (SSignal *)recentStickerMasksSignal; - (id)requestAudioSession:(TGAudioSessionType)type interrupted:(void (^)())interrupted; - (TGWallpaperInfo *)currentWallpaperInfo; - (UIImage *)currentWallpaperImage; - (SThreadPool *)sharedMediaImageProcessingThreadPool; - (TGMemoryImageCache *)sharedMediaMemoryImageCache; - (SSignal *)squarePhotoThumbnail:(TGImageMediaAttachment *)imageAttachment ofSize:(CGSize)size threadPool:(SThreadPool *)threadPool memoryCache:(TGMemoryImageCache *)memoryCache pixelProcessingBlock:(void (^)(void *, int, int, int))pixelProcessingBlock downloadLargeImage:(bool)downloadLargeImage placeholder:(SSignal *)placeholder; - (NSString *)localDocumentDirectoryForLocalDocumentId:(int64_t)localDocumentId version:(int32_t)version; - (NSString *)localDocumentDirectoryForDocumentId:(int64_t)documentId version:(int32_t)version; - (SSignal *)jsonForHttpLocation:(NSString *)httpLocation; - (SSignal *)dataForHttpLocation:(NSString *)httpLocation; - (NSOperation *)makeHTTPRequestOperationWithRequest:(NSURLRequest *)request; - (void)pausePictureInPicturePlayback; - (void)resumePictureInPicturePlayback; - (void)maybeReleaseVolumeOverlay; @optional - (TGNavigationBarPallete *)navigationBarPallete; - (TGMenuSheetPallete *)menuSheetPallete; - (TGMediaAssetsPallete *)mediaAssetsPallete; - (TGImageBorderPallete *)imageBorderPallete; - (TGCheckButtonPallete *)checkButtonPallete; @end @interface LegacyComponentsGlobals : NSObject + (void)setProvider:(id)provider; + (id)provider; @end #ifdef __cplusplus extern "C" { #endif UIImage *TGComponentsImageNamed(NSString *name); NSString *TGComponentsPathForResource(NSString *name, NSString *type); #ifdef __cplusplus } #endif