session-ios/SignalMessaging/utils/OWSWindowManager.h

56 lines
1.3 KiB
C
Raw Normal View History

//
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
NS_ASSUME_NONNULL_BEGIN
@class MessageActionsViewController;
// This VC can become first responder
// when presented to ensure that the input accessory is updated.
@interface OWSWindowRootViewController : UIViewController
@end
#pragma mark -
@protocol MessageActionsDelegate
- (void)dismissMessageActions:(MessageActionsViewController *)messageActionsViewController;
@end
#pragma mark -
extern NSString *const OWSWindowManagerCallDidChangeNotification;
2018-05-17 23:58:43 +02:00
const CGFloat OWSWindowManagerCallScreenHeight(void);
extern const UIWindowLevel UIWindowLevel_Background;
@interface OWSWindowManager : NSObject <MessageActionsDelegate>
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)sharedManager;
- (void)setupWithRootWindow:(UIWindow *)rootWindow screenBlockingWindow:(UIWindow *)screenBlockingWindow;
- (void)setIsScreenBlockActive:(BOOL)isScreenBlockActive;
2018-07-10 23:34:22 +02:00
#pragma mark - Message Actions
- (void)presentMessageActions:(MessageActionsViewController *)messageActionsViewController;
2018-07-10 23:34:22 +02:00
#pragma mark - Calls
@property (nonatomic, readonly) BOOL shouldShowCallView;
- (void)startCall:(UIViewController *)callViewController;
- (void)endCall:(UIViewController *)callViewController;
- (void)leaveCallView;
2018-04-18 18:09:42 +02:00
- (BOOL)hasCall;
@end
NS_ASSUME_NONNULL_END