mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
65 lines
2.2 KiB
Objective-C
65 lines
2.2 KiB
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
typedef enum {
|
|
TGNavigationControllerPresentationStyleDefault = 0,
|
|
TGNavigationControllerPresentationStyleRootInPopover = 1,
|
|
TGNavigationControllerPresentationStyleChildInPopover = 2,
|
|
TGNavigationControllerPresentationStyleInFormSheet = 3
|
|
} TGNavigationControllerPresentationStyle;
|
|
|
|
@interface TGNavigationController : UINavigationController
|
|
|
|
@property (nonatomic, copy) bool(^shouldPopController)(UIViewController *);
|
|
|
|
@property (nonatomic) bool restrictLandscape;
|
|
@property (nonatomic) bool disableInteractiveKeyboardTransition;
|
|
|
|
@property (nonatomic) bool isInPopTransition;
|
|
@property (nonatomic) bool isInControllerTransition;
|
|
|
|
@property (nonatomic) TGNavigationControllerPresentationStyle presentationStyle;
|
|
@property (nonatomic) bool detachFromPresentingControllerInCompactMode;
|
|
|
|
@property (nonatomic) bool displayPlayer;
|
|
@property (nonatomic) bool minimizePlayer;
|
|
|
|
@property (nonatomic) bool showCallStatusBar;
|
|
|
|
@property (nonatomic) CGFloat currentAdditionalNavigationBarHeight;
|
|
@property (nonatomic) bool forceAdditionalNavigationBarHeight;
|
|
|
|
@property (nonatomic, copy) void (^customDismissSelf)(void);
|
|
|
|
+ (TGNavigationController *)navigationControllerWithControllers:(NSArray *)controllers;
|
|
+ (TGNavigationController *)navigationControllerWithControllers:(NSArray *)controllers navigationBarClass:(Class)navigationBarClass;
|
|
+ (TGNavigationController *)navigationControllerWithControllers:(NSArray *)controllers navigationBarClass:(Class)navigationBarClass inhibitPresentation:(bool)inhibitPresentation;
|
|
+ (TGNavigationController *)navigationControllerWithRootController:(UIViewController *)controller;
|
|
|
|
+ (TGNavigationController *)makeWithRootController:(UIViewController *)controller;
|
|
|
|
- (void)setupNavigationBarForController:(UIViewController *)viewController animated:(bool)animated;
|
|
|
|
- (void)updateControllerLayout:(bool)animated;
|
|
- (void)updatePlayerOnControllers;
|
|
|
|
- (void)acquireRotationLock;
|
|
- (void)releaseRotationLock;
|
|
|
|
@end
|
|
|
|
@protocol TGNavigationControllerItem <NSObject>
|
|
|
|
@required
|
|
|
|
- (bool)shouldBeRemovedFromNavigationAfterHiding;
|
|
|
|
@optional
|
|
|
|
- (bool)shouldRemoveAllPreviousControllers;
|
|
|
|
@end
|
|
|
|
@protocol TGNavigationControllerTabsController <NSObject>
|
|
|
|
@end
|