// // PFAnonymousUtils.h // Parse // // Created by David Poll on 3/20/12. // Copyright (c) 2012 Parse, Inc. All rights reserved. // #import #import "PFUser.h" #import "PFConstants.h" /*! Provides utility functions for working with Anonymously logged-in users. Anonymous users have some unique characteristics: */ @interface PFAnonymousUtils : NSObject /*! @name Creating an Anonymous User */ /*! Creates an anonymous user. @param block The block to execute when anonymous user creation is complete. The block should have the following argument signature: (PFUser *user, NSError *error) */ + (void)logInWithBlock:(PFUserResultBlock)block; /*! Creates an anonymous user. The selector for the callback should look like: (PFUser *)user error:(NSError *)error @param target Target object for the selector. @param selector The selector that will be called when the asynchronous request is complete. */ + (void)logInWithTarget:(id)target selector:(SEL)selector; /*! @name Determining Whether a PFUser is Anonymous */ /*! Whether the user is logged in anonymously. @param user User to check for anonymity. The user must be logged in on this device. @result True if the user is anonymous. False if the user is not the current user or is not anonymous. */ + (BOOL)isLinkedWithUser:(PFUser *)user; @end