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.
33 lines
859 B
Objective-C
33 lines
859 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class PinEntryView;
|
|
|
|
@protocol PinEntryViewDelegate <NSObject>
|
|
|
|
- (void)pinEntryView:(PinEntryView *)entryView submittedPinCode:(NSString *)pinCode;
|
|
- (void)pinEntryViewForgotPinLinkTapped:(PinEntryView *)entryView;
|
|
|
|
@optional
|
|
- (void)pinEntryView:(PinEntryView *)entryView pinCodeDidChange:(NSString *)pinCode;
|
|
|
|
@end
|
|
|
|
@interface PinEntryView : UIView
|
|
|
|
@property (nonatomic, weak, nullable) id<PinEntryViewDelegate> delegate;
|
|
@property (nonatomic, readonly) BOOL hasValidPin;
|
|
@property (nullable, nonatomic) NSString *instructionsText;
|
|
@property (nullable, nonatomic) NSAttributedString *attributedInstructionsText;
|
|
@property (nonatomic, readonly) UIFont *boldLabelFont;
|
|
|
|
- (void)clearText;
|
|
- (BOOL)makePinTextFieldFirstResponder;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|