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.
30 lines
734 B
C
30 lines
734 B
C
7 years ago
|
//
|
||
|
// Copyright (c) 2018 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
|