@@ -30,6 +30,11 @@ NS_ASSUME_NONNULL_BEGIN
3030@class TOPasscodeKeypadView;
3131@class TOPasscodeViewContentLayout;
3232
33+ /* *
34+ The passcode view is the primary content view for the passcode view controller.
35+ On iPad, every view except the background view is a subview of this view.
36+ On iPhone, the auxiliary buttons ('Touch ID', 'Cancel') are managed by the view controller.
37+ */
3338@interface TOPasscodeView : UIView
3439
3540/* The visual style of the view */
@@ -83,19 +88,43 @@ NS_ASSUME_NONNULL_BEGIN
8388/* Callback triggered when the user has finished entering the passcode */
8489@property (nonatomic , copy , nullable ) void (^passcodeCompletedHandler)(NSString *passcode);
8590
86- /* Create a new instance with one of the style types */
91+ /*
92+ Create a new instance with one of the style types
93+
94+ @param style The visual style of the passcode view.
95+ @param type The type of passcode to accept.
96+ */
8797- (instancetype )initWithStyle : (TOPasscodeViewStyle)style passcodeType : (TOPasscodeType)type ;
8898
89- /* Resize the view and all subviews for the optimum size to fit a super view of the suplied width. */
99+ /*
100+ Resize the view and all subviews for the optimum size to fit a super view of the suplied width.
101+
102+ @param size The size of the view to which this view.
103+ */
90104- (void )sizeToFitSize : (CGSize)size ;
91105
92- /* Reset the passcode to nil and optionally play animation / vibration to match */
106+ /*
107+ Reset the passcode to nil and optionally play animation / vibration to match
108+
109+ @param animated Play a shaking animation to reset the password.
110+ @param impact On supported devices, play a small reset vibration as well.
111+ */
93112- (void )resetPasscodeAnimated : (BOOL )animated playImpact : (BOOL )impact ;
94113
95- /* Delete the last character from the passcode */
114+ /*
115+ Delete the last character from the passcode
116+
117+ @param animated Whether the delete operation is animated or not.
118+ */
96119- (void )deleteLastPasscodeCharacterAnimated : (BOOL )animated ;
97120
98- /* Animate the transition between horizontal and vertical layouts */
121+ /*
122+ Animate the transition between horizontal and vertical layouts
123+
124+ @param horizontalLayout Whether to lay out the content vertically or horizontally.
125+ @param animated Whether the transition is animated or not.
126+ @param duration The duration of the animation
127+ */
99128- (void )setHorizontalLayout : (BOOL )horizontalLayout animated : (BOOL )animated duration : (CGFloat)duration ;
100129
101130@end
0 commit comments