mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			59 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C
		
	
		
		
			
		
	
	
			59 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C
		
	
| 
											8 years ago
										 | //
 | ||
| 
											7 years ago
										 | //  Copyright (c) 2019 Open Whisper Systems. All rights reserved.
 | ||
| 
											8 years ago
										 | //
 | ||
|  | 
 | ||
| 
											5 years ago
										 | #import <UIKit/UIKit.h>
 | ||
|  | 
 | ||
| 
											8 years ago
										 | NS_ASSUME_NONNULL_BEGIN | ||
|  | 
 | ||
| 
											7 years ago
										 | extern NSString *const OWSWindowManagerCallDidChangeNotification; | ||
|  | 
 | ||
|  | extern NSString *const IsScreenBlockActiveDidChangeNotification; | ||
|  | 
 | ||
| 
											8 years ago
										 | // This VC can become first responder
 | ||
|  | // when presented to ensure that the input accessory is updated.
 | ||
|  | @interface OWSWindowRootViewController : UIViewController | ||
|  | 
 | ||
|  | @end | ||
|  | 
 | ||
|  | #pragma mark -
 | ||
|  | 
 | ||
| 
											7 years ago
										 | const CGFloat OWSWindowManagerCallBannerHeight(void); | ||
| 
											8 years ago
										 | 
 | ||
| 
											8 years ago
										 | extern const UIWindowLevel UIWindowLevel_Background; | ||
|  | 
 | ||
| 
											7 years ago
										 | @interface OWSWindowManager : NSObject | ||
| 
											8 years ago
										 | 
 | ||
|  | - (instancetype)init NS_UNAVAILABLE; | ||
| 
											7 years ago
										 | - (instancetype)initDefault NS_DESIGNATED_INITIALIZER; | ||
| 
											8 years ago
										 | 
 | ||
|  | + (instancetype)sharedManager; | ||
|  | 
 | ||
|  | - (void)setupWithRootWindow:(UIWindow *)rootWindow screenBlockingWindow:(UIWindow *)screenBlockingWindow; | ||
|  | 
 | ||
| 
											7 years ago
										 | @property (nonatomic, readonly) UIWindow *rootWindow; | ||
| 
											7 years ago
										 | @property (nonatomic, readonly) UIWindow *menuActionsWindow; | ||
| 
											7 years ago
										 | @property (nonatomic) BOOL isScreenBlockActive; | ||
| 
											8 years ago
										 | 
 | ||
| 
											7 years ago
										 | - (BOOL)isAppWindow:(UIWindow *)window; | ||
|  | 
 | ||
| 
											7 years ago
										 | #pragma mark - Message Actions
 | ||
|  | 
 | ||
| 
											7 years ago
										 | @property (nonatomic, readonly) BOOL isPresentingMenuActions; | ||
| 
											7 years ago
										 | 
 | ||
| 
											7 years ago
										 | - (void)showMenuActionsWindow:(UIViewController *)menuActionsViewController; | ||
|  | - (void)hideMenuActionsWindow; | ||
| 
											7 years ago
										 | 
 | ||
| 
											8 years ago
										 | #pragma mark - Calls
 | ||
|  | 
 | ||
| 
											7 years ago
										 | @property (nonatomic, readonly) BOOL shouldShowCallView; | ||
|  | 
 | ||
| 
											8 years ago
										 | - (void)startCall:(UIViewController *)callViewController; | ||
|  | - (void)endCall:(UIViewController *)callViewController; | ||
|  | - (void)leaveCallView; | ||
| 
											8 years ago
										 | - (BOOL)hasCall; | ||
| 
											8 years ago
										 | 
 | ||
|  | @end | ||
|  | 
 | ||
|  | NS_ASSUME_NONNULL_END |