LuxChat  2.0
Instant messenger for iOS
List of all members
<PFLogInViewControllerDelegate> Protocol Reference

#import <PFLogInViewController.h>

Inheritance diagram for <PFLogInViewControllerDelegate>:

Instance Methods

Customizing Behavior


(BOOL) - logInViewController:shouldBeginLogInWithUsername:password:
 
Responding to Actions


(void) - logInViewController:didLogInUser:
 
(void) - logInViewController:didFailToLogInWithError:
 
(void) - logInViewControllerDidCancelLogIn:
 

Detailed Description

The PFLogInViewControllerDelegate protocol defines methods a delegate of a PFLogInViewController should implement. All methods of this protocol are optional.

Method Documentation

- (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.

Parameters
logInControllerThe login view controller where login failed.
errorNSError object representing the error that occured.
- (void) logInViewController: (PFLogInViewController *)  logInController
didLogInUser: (PFUser *)  user 

Sent to the delegate when a PFUser is logged in.

Parameters
logInControllerThe login view controller where login finished.
userPFUser 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.

Parameters
logInControllerThe login view controller that is requesting the data.
usernamethe username the user tries to log in with.
passwordthe password the user tries to log in with.
Returns
A BOOL indicating whether the log in should proceed.
- (void) logInViewControllerDidCancelLogIn: (PFLogInViewController *)  logInController

Sent to the delegate when the log in screen is cancelled.

Parameters
logInControllerThe login view controller where login was cancelled.

The documentation for this protocol was generated from the following file: