Signal-iOS/SignalUI/ViewControllers/ScreenLockViewController.h
2021-10-19 09:39:53 -03:00

30 lines
734 B
Objective-C

//
// Copyright (c) 2021 Open Whisper Systems. All rights reserved.
//
typedef NS_ENUM(NSUInteger, ScreenLockUIState) {
ScreenLockUIStateNone,
// Shown while app is inactive or background, if enabled.
ScreenLockUIStateScreenProtection,
// Shown while app is active, if enabled.
ScreenLockUIStateScreenLock,
};
NSString *NSStringForScreenLockUIState(ScreenLockUIState value);
@protocol ScreenLockViewDelegate <NSObject>
- (void)unlockButtonWasTapped;
@end
#pragma mark -
@interface ScreenLockViewController : UIViewController
@property (nonatomic, weak) id<ScreenLockViewDelegate> delegate;
- (void)updateUIWithState:(ScreenLockUIState)uiState isLogoAtTop:(BOOL)isLogoAtTop animated:(BOOL)animated;
@end