LuxChat  2.0
Instant messenger for iOS
PFSignUpViewController.h
1 /*
2  * Copyright (c) 2014, Parse, LLC. All rights reserved.
3  *
4  * You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
5  * copy, modify, and distribute this software in source code or binary form for use
6  * in connection with the web services and APIs provided by Parse.
7  *
8  * As with any software that integrates with the Parse platform, your use of
9  * this software is subject to the Parse Terms of Service
10  * [https://www.parse.com/about/terms]. This copyright notice shall be
11  * included in all copies or substantial portions of the software.
12  *
13  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19  *
20  */
21 
22 #import <UIKit/UIKit.h>
23 
24 #import <Parse/PFConstants.h>
25 
26 #import <ParseUI/ParseUIConstants.h>
27 #import <ParseUI/PFSignUpView.h>
28 
29 @class PFUser;
31 
32 NS_ASSUME_NONNULL_BEGIN
33 
38 @interface PFSignUpViewController : UIViewController <UITextFieldDelegate, UIScrollViewDelegate>
39 
43 
49 @property (nonatomic, assign) PFSignUpFields fields;
50 
56 @property (nullable, nonatomic, strong, readonly) PFSignUpView *signUpView;
57 
61 
67 @property (nullable, nonatomic, weak) id<PFSignUpViewControllerDelegate> delegate;
68 
72 @property (nonatomic, assign) NSUInteger minPasswordLength;
73 
81 @property (nonatomic, assign) BOOL emailAsUsername;
82 
83 @end
84 
88 
92 extern NSString *const PFSignUpSuccessNotification;
93 
99 extern NSString *const PFSignUpFailureNotification;
100 
104 extern NSString *const PFSignUpCancelNotification;
105 
109 
114 @protocol PFSignUpViewControllerDelegate <NSObject>
115 
116 @optional
117 
121 
130 - (BOOL)signUpViewController:(PFSignUpViewController *)signUpController shouldBeginSignUp:(NSDictionary<NSString *, NSString *> *)info;
131 
135 
142 - (void)signUpViewController:(PFSignUpViewController *)signUpController didSignUpUser:(PFUser *)user;
143 
150 - (void)signUpViewController:(PFSignUpViewController *)signUpController didFailToSignUpWithError:(nullable NSError *)error;
151 
157 - (void)signUpViewControllerDidCancelSignUp:(PFSignUpViewController *)signUpController;
158 
159 @end
160 
161 NS_ASSUME_NONNULL_END
BOOL emailAsUsername
Definition: PFSignUpViewController.h:81
PFSignUpFields fields
Definition: PFSignUpViewController.h:49
PFSignUpView * signUpView
Definition: PFSignUpViewController.h:56
Definition: PFSignUpViewController.h:38
NSUInteger minPasswordLength
Definition: PFSignUpViewController.h:72
Definition: PFSignUpView.h:69
id< PFSignUpViewControllerDelegate > delegate
Definition: PFSignUpViewController.h:67
Definition: PFSignUpViewController.h:114