mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-19 12:10:55 +00:00
55 lines
1.4 KiB
Objective-C
55 lines
1.4 KiB
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
@class SSignal;
|
|
|
|
@protocol TGNavigationBarMusicPlayerView <NSObject>
|
|
|
|
@end
|
|
|
|
@protocol TGNavigationBarMusicPlayerProvider <NSObject>
|
|
|
|
- (UIView<TGNavigationBarMusicPlayerView> *)makeMusicPlayerView:(UINavigationController *)navigationController;
|
|
- (SSignal *)musicPlayerIsActive;
|
|
|
|
@end
|
|
|
|
@interface TGNavigationBar : UINavigationBar
|
|
|
|
+ (void)setMusicPlayerProvider:(id<TGNavigationBarMusicPlayerProvider>)provider;
|
|
+ (id<TGNavigationBarMusicPlayerProvider>)musicPlayerProvider;
|
|
|
|
@property (nonatomic, weak) UINavigationController *navigationController;
|
|
|
|
@property (nonatomic, strong) UIView *progressView;
|
|
@property (nonatomic, assign) CGFloat verticalOffset;
|
|
@property (nonatomic, weak) UIView *additionalView;
|
|
|
|
@property (nonatomic) bool keepAlpha;
|
|
|
|
- (id)initWithFrame:(CGRect)frame barStyle:(UIBarStyle)barStyle;
|
|
|
|
- (void)setHiddenState:(bool)hidden animated:(bool)animated;
|
|
|
|
- (bool)shouldAddBackdropBackground;
|
|
- (unsigned int)indexAboveBackdropBackground;
|
|
|
|
@property (nonatomic, assign) CGFloat musicPlayerOffset;
|
|
@property (nonatomic, strong) UIView<TGNavigationBarMusicPlayerView> *musicPlayerView;
|
|
@property (nonatomic) bool minimizedMusicPlayer;
|
|
|
|
- (void)showMusicPlayerView:(bool)show animation:(void (^)())animation;
|
|
|
|
@end
|
|
|
|
@interface TGBlackNavigationBar : TGNavigationBar
|
|
|
|
@end
|
|
|
|
@interface TGWhiteNavigationBar : TGNavigationBar
|
|
|
|
@end
|
|
|
|
@interface TGTransparentNavigationBar : TGNavigationBar
|
|
|
|
@end
|