LuxChat  2.0
Instant messenger for iOS
Class Methods | List of all members
PFAnonymousUtils Class Reference

#import <PFAnonymousUtils.h>

Inheritance diagram for PFAnonymousUtils:

Class Methods

(BFTask< PFUser * > *) + logInInBackground
 
More...
 
(void) + logInWithBlock:
 
(BOOL) + isLinkedWithUser:
 
More...
 
(void) + logInWithTarget:selector:
 
More...
 

Detailed Description

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:

Method Documentation

+ (BOOL) isLinkedWithUser: (nullable PFUser *)  user



Whether the PFUser object is logged in anonymously.

Parameters
userPFUser object to check for anonymity. The user must be logged in on this device.
Returns
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.

Returns
The task, that encapsulates the work being done.
+ (void) logInWithBlock: (nullable PFUserResultBlock)  block

Creates an anonymous user asynchronously and performs a provided block.

Parameters
blockThe 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.

Parameters
targetTarget object for the selector.
selectorThe selector that will be called when the asynchronous request is complete. It should have the following signature: (void)callbackWithUser:(PFUser *)user error:(NSError *)error.
Deprecated:
Please use PFAnonymousUtils.+logInWithBlock: instead.

Provided by category PFAnonymousUtils(Deprecated).


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