|
LuxChat
2.0
Instant messenger for iOS
|
#import <PFUser+Synchronous.h>
Instance Methods | |
| (BOOL) | - PF_SWIFT_UNAVAILABLE |
More... | |
| (BOOL) | - signUp: |
Class Methods | |
| (nullable instancetype) | + logInWithUsername:password: |
More... | |
| (nullable instancetype) | + logInWithUsername:password:error: |
| (nullable instancetype) | + become: |
More... | |
| (nullable instancetype) | + become:error: |
| (void) | + logOut |
More... | |
| (BOOL) | + requestPasswordResetForEmail: |
More... | |
| (BOOL) | + requestPasswordResetForEmail:error: |
Copyright (c) 2015-present, Parse, LLC. All rights reserved.
This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. This category lists all methods of PFUser class that are synchronous, but have asynchronous counterpart, Calling one of these synchronous methods could potentially block the current thread for a large amount of time, since it might be fetching from network or saving/loading data from disk.
| + (nullable instancetype) become: | (NSString *) | PF_SWIFT_UNAVAILABLE |
Makes a synchronous request to become a user with the given session token.
Returns an instance of the successfully logged in PFUser. This also caches the user locally so that calls to +currentUser will use the latest logged in user.
| sessionToken | The session token for the user. |
PFUser on success. If becoming a user fails due to incorrect token, it returns nil. | + (nullable instancetype) become: | (NSString *) | sessionToken | |
| error: | (NSError **) | error | |
Makes a synchronous request to become a user with the given session token.
Returns an instance of the successfully logged in PFUser. This will also cache the user locally so that calls to +currentUser will use the latest logged in user.
| sessionToken | The session token for the user. |
| error | The error object to set on error. |
PFUser on success. If becoming a user fails due to incorrect token, it returns nil. | + (nullable instancetype) logInWithUsername: | (NSString *) | username | |
| password: | (NSString *) | PF_SWIFT_UNAVAILABLE | |
Makes a synchronous request to login a user with specified credentials.
Returns an instance of the successfully logged in PFUser. This also caches the user locally so that calls to +currentUser will use the latest logged in user.
| username | The username of the user. |
| password | The password of the user. |
PFUser on success. If login failed for either wrong password or wrong username, returns nil. | + (nullable instancetype) logInWithUsername: | (NSString *) | username | |
| password: | (NSString *) | password | |
| error: | (NSError **) | error | |
Makes a synchronous request to login a user with specified credentials.
Returns an instance of the successfully logged in PFUser. This also caches the user locally so that calls to +currentUser will use the latest logged in user.
| username | The username of the user. |
| password | The password of the user. |
| error | The error object to set on error. |
PFUser on success. If login failed for either wrong password or wrong username, returns nil. | + (void) logOut |
Synchronously* logs out the currently logged in user on disk.
| - (BOOL) PF_SWIFT_UNAVAILABLE |
Signs up the user synchronously.
This will also enforce that the username isn't already taken.
YES if the sign up was successful, otherwise NO. | + (BOOL) requestPasswordResetForEmail: | (NSString *) | PF_SWIFT_UNAVAILABLE |
Synchronously* Send a password reset request for a specified email.
If a user account exists with that email, an email will be sent to that address with instructions on how to reset their password.
| Email of the account to send a reset password request. |
YES if the reset email request is successful. NO - if no account was found for the email address. | + (BOOL) requestPasswordResetForEmail: | (NSString *) | ||
| error: | (NSError **) | error | |
Synchronously* send a password reset request for a specified email and sets an error object.
If a user account exists with that email, an email will be sent to that address with instructions on how to reset their password.
| Email of the account to send a reset password request. | |
| error | Error object to set on error. |
YES if the reset email request is successful. NO - if no account was found for the email address. | - (BOOL) signUp: | (NSError **) | error |
Signs up the user synchronously.
This will also enforce that the username isn't already taken.
| error | Error object to set on error. |
1.8.9.1