mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-18 11:30:04 +00:00
27 lines
841 B
Objective-C
27 lines
841 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;
|
|
|
|
- (void)setReturnKeyType:(UIReturnKeyType)keyType;
|
|
|
|
@end
|