|
LuxChat
2.0
Instant messenger for iOS
|
#import <PFAnonymousUtils.h>
Class Methods | |
| (BFTask< PFUser * > *) | + logInInBackground |
More... | |
| (void) | + logInWithBlock: |
| (BOOL) | + isLinkedWithUser: |
More... | |
| (void) | + logInWithTarget:selector: |
More... | |
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. Provides utility functions for working with Anonymously logged-in users. Anonymous users have some unique characteristics:
| + (BOOL) isLinkedWithUser: | (nullable PFUser *) | user |
Whether the PFUser object is logged in anonymously.
| user | PFUser object to check for anonymity. The user must be logged in on this device. |
YES if the user is anonymous. NO if the user is not the current user or is not anonymous. | + (BFTask<PFUser *> *) logInInBackground |
Creates an anonymous user asynchronously and sets as a result to BFTask.
| + (void) logInWithBlock: | (nullable PFUserResultBlock) | block |
Creates an anonymous user asynchronously and performs a provided block.
| block | The block to execute when anonymous user creation is complete. It should have the following argument signature: ^(PFUser *user, NSError *error). |
| + (void) logInWithTarget: | (nullable id) | target | |
| selector: | ("Please use `PFAnonymousUtils.+logInWithBlock:` instead.") | PARSE_DEPRECATED | |
Creates an anonymous user asynchronously and invokes a selector on a target.
| target | Target object for the selector. |
| selector | The selector that will be called when the asynchronous request is complete. It should have the following signature: (void)callbackWithUser:(PFUser *)user error:(NSError *)error. |
PFAnonymousUtils.+logInWithBlock: instead. Provided by category PFAnonymousUtils(Deprecated).
1.8.9.1