1
0
mirror of https://github.com/danog/Telegram.git synced 2025-01-22 05:52:06 +01:00
Telegram/Telegraph/TGPasswordEntryView.h
2015-10-01 19:19:52 +03:00

25 lines
789 B
Objective-C

#import <UIKit/UIKit.h>
typedef enum {
TGPasswordEntryViewStyleDefault,
TGPasswordEntryViewStyleTranslucent
} TGPasswordEntryViewStyle;
@interface TGPasswordEntryView : UIView
@property (nonatomic, copy) void (^cancel)();
@property (nonatomic, copy) void (^simplePasscodeEntered)();
@property (nonatomic, copy) void (^complexPasscodeEntered)();
@property (nonatomic, copy) void (^passcodeChanged)(NSString *);
- (instancetype)initWithFrame:(CGRect)frame style:(TGPasswordEntryViewStyle)style;
- (void)setTitle:(NSString *)title errorTitle:(NSString *)errorTitle isComplex:(bool)isComplex animated:(bool)animated;
- (void)setErrorTitle:(NSString *)errorTitle;
- (NSString *)passcode;
- (void)resetPasscode;
- (void)becomeFirstResponder;
- (void)updateBackgroundIfNeeded;
@end