|
LuxChat
2.0
Instant messenger for iOS
|
#import <PFLogInViewController.h>
Instance Methods | |
Customizing Behavior | |
| (BOOL) | - logInViewController:shouldBeginLogInWithUsername:password: |
Responding to Actions | |
| (void) | - logInViewController:didLogInUser: |
| (void) | - logInViewController:didFailToLogInWithError: |
| (void) | - logInViewControllerDidCancelLogIn: |
The PFLogInViewControllerDelegate protocol defines methods a delegate of a PFLogInViewController should implement. All methods of this protocol are optional.
| - (void) logInViewController: | (PFLogInViewController *) | logInController | |
| didFailToLogInWithError: | (nullable NSError *) | error | |
Sent to the delegate when the log in attempt fails.
If you implement this method, PFLoginViewController will not automatically show its default login failure alert view. Instead, you should show your custom alert view in your implementation.
| logInController | The login view controller where login failed. |
| error | NSError object representing the error that occured. |
| - (void) logInViewController: | (PFLogInViewController *) | logInController | |
| didLogInUser: | (PFUser *) | user | |
Sent to the delegate when a PFUser is logged in.
| logInController | The login view controller where login finished. |
| user | PFUser object that is a result of the login. |
| - (BOOL) logInViewController: | (PFLogInViewController *) | logInController | |
| shouldBeginLogInWithUsername: | (NSString *) | username | |
| password: | (NSString *) | password | |
Sent to the delegate to determine whether the log in request should be submitted to the server.
| logInController | The login view controller that is requesting the data. |
| username | the username the user tries to log in with. |
| password | the password the user tries to log in with. |
BOOL indicating whether the log in should proceed. | - (void) logInViewControllerDidCancelLogIn: | (PFLogInViewController *) | logInController |
Sent to the delegate when the log in screen is cancelled.
| logInController | The login view controller where login was cancelled. |
1.8.9.1