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.
49 lines
1.2 KiB
Objective-C
49 lines
1.2 KiB
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
// This VC can become first responder
|
|
// when presented to ensure that the input accessory is updated.
|
|
@interface OWSWindowRootViewController : UIViewController
|
|
|
|
@end
|
|
|
|
#pragma mark -
|
|
|
|
extern NSString *const OWSWindowManagerCallDidChangeNotification;
|
|
const CGFloat OWSWindowManagerCallScreenHeight(void);
|
|
|
|
extern const UIWindowLevel UIWindowLevel_Background;
|
|
|
|
@interface OWSWindowManager : NSObject
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
+ (instancetype)sharedManager;
|
|
|
|
- (void)setupWithRootWindow:(UIWindow *)rootWindow screenBlockingWindow:(UIWindow *)screenBlockingWindow;
|
|
|
|
- (void)setIsScreenBlockActive:(BOOL)isScreenBlockActive;
|
|
|
|
#pragma mark - Message Actions
|
|
|
|
@property (nonatomic, readonly) BOOL isPresentingMessageActions;
|
|
|
|
- (void)showMessageActionsWindow:(UIViewController *)messageActionsViewController;
|
|
- (void)hideMessageActionsWindow:(UIViewController *)messageActionsViewController;
|
|
|
|
#pragma mark - Calls
|
|
|
|
@property (nonatomic, readonly) BOOL shouldShowCallView;
|
|
|
|
- (void)startCall:(UIViewController *)callViewController;
|
|
- (void)endCall:(UIViewController *)callViewController;
|
|
- (void)leaveCallView;
|
|
- (BOOL)hasCall;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|