LuxChat  2.0
Instant messenger for iOS
Instance Methods | Class Methods | Properties | List of all members
PFObject Class Reference

#import <PFObject.h>

Inheritance diagram for PFObject:
PFInstallation PFProduct PFSession

Instance Methods

(instancetype) - initWithClassName:
 
More...
 
(nullable id) - objectForKey:
 
More...
 
(void) - setObject:forKey:
 
(void) - removeObjectForKey:
 
(nullable id) - objectForKeyedSubscript:
 
(void) - setObject:forKeyedSubscript:
 
(PFRelation *) - relationForKey:
 
(PFRelation *) - relationforKey:
 
(void) - revert
 
(void) - revertObjectForKey:
 
(void) - addObject:forKey:
 
More...
 
(void) - addObjectsFromArray:forKey:
 
(void) - addUniqueObject:forKey:
 
(void) - addUniqueObjectsFromArray:forKey:
 
(void) - removeObject:forKey:
 
(void) - removeObjectsInArray:forKey:
 
(void) - incrementKey:
 
More...
 
(void) - incrementKey:byAmount:
 
(BFTask< NSNumber * > *) - saveInBackground
 
More...
 
(void) - saveInBackgroundWithBlock:
 
(BFTask< NSNumber * > *) - PF_WATCH_UNAVAILABLE
 
(void) - saveEventually:
 
(BFTask< __kindof PFObject * > *) - fetchInBackground
 
(void) - fetchInBackgroundWithBlock:
 
(BFTask< __kindof PFObject * > *) - fetchIfNeededInBackground
 
(void) - fetchIfNeededInBackgroundWithBlock:
 
(BFTask< __kindof PFObject * > *) - fetchFromLocalDatastoreInBackground
 
More...
 
(void) - fetchFromLocalDatastoreInBackgroundWithBlock:
 
(BFTask< NSNumber * > *) - deleteInBackground
 
More...
 
(void) - deleteInBackgroundWithBlock:
 
(BFTask< NSNumber * > *) - PF_WATCH_UNAVAILABLE
 
(BOOL) - isDirtyForKey:
 
(BFTask< NSNumber * > *) - pinInBackground
 
More...
 
(void) - pinInBackgroundWithBlock:
 
(BFTask< NSNumber * > *) - pinInBackgroundWithName:
 
(void) - pinInBackgroundWithName:block:
 
(BFTask< NSNumber * > *) - unpinInBackground
 
More...
 
(void) - unpinInBackgroundWithBlock:
 
(BFTask< NSNumber * > *) - unpinInBackgroundWithName:
 
(void) - unpinInBackgroundWithName:block:
 
(void) - saveInBackgroundWithTarget:selector:
 
More...
 
(void) - refreshInBackgroundWithTarget:selector:
 
More...
 
(void) - fetchInBackgroundWithTarget:selector:
 
(void) - fetchIfNeededInBackgroundWithTarget:selector:
 
(void) - deleteInBackgroundWithTarget:selector:
 
More...
 
(BOOL) - PF_SWIFT_UNAVAILABLE
 
More...
 
(nullable instancetype) - PF_SWIFT_UNAVAILABLE
 
More...
 
(nullable instancetype) - PF_SWIFT_UNAVAILABLE
 
(nullable instancetype) - PF_SWIFT_UNAVAILABLE
 
More...
 
(BOOL) - PF_SWIFT_UNAVAILABLE
 
More...
 
(BOOL) - PF_SWIFT_UNAVAILABLE
 
More...
 
(BOOL) - PF_SWIFT_UNAVAILABLE
 
More...
 
(BOOL) - save:
 
(nullable instancetype) - fetch:
 
(nullable instancetype) - fetchIfNeeded:
 
(nullable instancetype) - fetchFromLocalDatastore:
 
(BOOL) - delete:
 
(BOOL) - pin:
 
(BOOL) - pinWithName:
 
(BOOL) - pinWithName:error:
 
(BOOL) - unpin:
 
(BOOL) - unpinWithName:
 
(BOOL) - unpinWithName:error:
 

Class Methods

(instancetype) + objectWithClassName:
 
(instancetype) + objectWithClassName:dictionary:
 
(instancetype) + objectWithoutDataWithClassName:objectId:
 
(BFTask< NSNumber * > *) + saveAllInBackground:
 
More...
 
(void) + saveAllInBackground:block:
 
(BFTask< NSNumber * > *) + deleteAllInBackground:
 
More...
 
(void) + deleteAllInBackground:block:
 
(BFTask< NSArray< __kindof PFObject * > * > *) + fetchAllInBackground:
 
More...
 
(void) + fetchAllInBackground:block:
 
(BFTask< NSArray< __kindof PFObject * > * > *) + fetchAllIfNeededInBackground:
 
(void) + fetchAllIfNeededInBackground:block:
 
(BFTask< NSNumber * > *) + pinAllInBackground:
 
More...
 
(void) + pinAllInBackground:block:
 
(BFTask< NSNumber * > *) + pinAllInBackground:withName:
 
(void) + pinAllInBackground:withName:block:
 
(BFTask< NSNumber * > *) + unpinAllObjectsInBackground
 
More...
 
(void) + unpinAllObjectsInBackgroundWithBlock:
 
(BFTask< NSNumber * > *) + unpinAllObjectsInBackgroundWithName:
 
(void) + unpinAllObjectsInBackgroundWithName:block:
 
(BFTask< NSNumber * > *) + unpinAllInBackground:
 
(void) + unpinAllInBackground:block:
 
(BFTask< NSNumber * > *) + unpinAllInBackground:withName:
 
(void) + unpinAllInBackground:withName:block:
 
(void) + saveAllInBackground:target:selector:
 
More...
 
(void) + fetchAllInBackground:target:selector:
 
More...
 
(void) + fetchAllIfNeededInBackground:target:selector:
 
(void) + deleteAllInBackground:target:selector:
 
More...
 
(BOOL) + PF_SWIFT_UNAVAILABLE
 
More...
 
(BOOL) + saveAll:
 
More...
 
(BOOL) + saveAll:error:
 
(nullable NSArray< __kindof PFObject * > *) + fetchAll:
 
More...
 
(nullable NSArray< __kindof PFObject * > *) + fetchAll:error:
 
(nullable NSArray< __kindof PFObject * > *) + fetchAllIfNeeded:
 
(nullable NSArray< __kindof PFObject * > *) + fetchAllIfNeeded:error:
 
(BOOL) + deleteAll:
 
More...
 
(BOOL) + deleteAll:error:
 
(BOOL) + pinAll:
 
More...
 
(BOOL) + pinAll:error:
 
(BOOL) + pinAll:withName:
 
(BOOL) + pinAll:withName:error:
 
(BOOL) + unpinAllObjects:
 
(BOOL) + unpinAllObjectsWithName:
 
(BOOL) + unpinAllObjectsWithName:error:
 
(BOOL) + unpinAll:
 
(BOOL) + unpinAll:error:
 
(BOOL) + unpinAll:withName:
 
(BOOL) + unpinAll:withName:error:
 

Properties

NSString * parseClassName
 
More...
 
NSString * objectId
 
NSDate * updatedAt
 
NSDate * createdAt
 
PFACLACL
 
NSArray< NSString * > * allKeys
 
BOOL dataAvailable
 
More...
 
BOOL dirty
 
More...
 

Detailed Description

The PFObject class is a local representation of data persisted to the Parse cloud. This is the main class that is used to interact with objects in your app.

Method Documentation

- (void) addObject: (id)  object
forKey: (NSString *)  key 



Adds an object to the end of the array associated with a given key.

Parameters
objectThe object to add.
keyThe key.
- (void) addObjectsFromArray: (NSArray *)  objects
forKey: (NSString *)  key 

Adds the objects contained in another array to the end of the array associated with a given key.

Parameters
objectsThe array of objects to add.
keyThe key.
- (void) addUniqueObject: (id)  object
forKey: (NSString *)  key 

Adds an object to the array associated with a given key, only if it is not already present in the array.

The position of the insert is not guaranteed.

Parameters
objectThe object to add.
keyThe key.
- (void) addUniqueObjectsFromArray: (NSArray *)  objects
forKey: (NSString *)  key 

Adds the objects contained in another array to the array associated with a given key, only adding elements which are not already present in the array.

The position of the insert is not guaranteed.

Parameters
objectsThe array of objects to add.
keyThe key.
- (BOOL) delete: (NSError **)  error

Synchronously* deletes the PFObject and sets an error if it occurs.

Parameters
errorPointer to an NSError that will be set if necessary.
Returns
Returns whether the delete succeeded.

Provided by category PFObject(Synchronous).

+ (BOOL) deleteAll: (nullable NSArray< PFObject * > *)  PF_SWIFT_UNAVAILABLE



Synchronously* deletes a collection of objects all at once.

Parameters
objectsThe array of objects to delete.
Returns
Returns whether the delete succeeded.

Provided by category PFObject(Synchronous).

+ (BOOL) deleteAll: (nullable NSArray< PFObject * > *)  objects
error: (NSError **)  error 

Synchronously* deletes a collection of objects all at once and sets an error if necessary.

Parameters
objectsThe array of objects to delete.
errorPointer to an NSError that will be set if necessary.
Returns
Returns whether the delete succeeded.

Provided by category PFObject(Synchronous).

+ (BFTask<NSNumber *> *) deleteAllInBackground: (nullable NSArray< PFObject * > *)  objects



Deletes a collection of objects all at once asynchronously.

Parameters
objectsThe array of objects to delete.
Returns
The task that encapsulates the work being done.
+ (void) deleteAllInBackground: (nullable NSArray< PFObject * > *)  objects
block: (nullable PFBooleanResultBlock)  block 

Deletes a collection of objects all at once asynchronously and executes the block when done.

Parameters
objectsThe array of objects to delete.
blockThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
+ (void) deleteAllInBackground: (nullable NSArray< PFObject * > *)  objects
target: (nullable id)  target
selector: ("Please use `PFObject.+deleteAllInBackground:block:` instead.")  PARSE_DEPRECATED 



Deletes a collection of objects all at once asynchronously and calls a callback when done.

Parameters
objectsThe array of objects to delete.
targetThe object to call selector on.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)number error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.
Deprecated:
Please use PFObject.+deleteAllInBackground:block: instead.

Provided by category PFObject(Deprecated).

- (BFTask<NSNumber *> *) deleteInBackground



Deletes the PFObject asynchronously.

Returns
The task that encapsulates the work being done.
- (void) deleteInBackgroundWithBlock: (nullable PFBooleanResultBlock)  block

Deletes the PFObject asynchronously and executes the given callback block.

Parameters
blockThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
- (void) deleteInBackgroundWithTarget: (nullable id)  target
selector: ("Please use `PFObject.-deleteInBackgroundWithBlock:` instead.")  PARSE_DEPRECATED 



Deletes the PFObject asynchronously and calls the given callback.

Parameters
targetThe object to call selector on.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.
Deprecated:
Please use PFObject.-deleteInBackgroundWithBlock: instead.

Provided by category PFObject(Deprecated).

- (nullable instancetype) fetch: (NSError **)  error

Synchronously* fetches the PFObject with the current data from the server and sets an error if it occurs.

Parameters
errorPointer to an NSError that will be set if necessary.

Provided by category PFObject(Synchronous).

+ (nullable NSArray<__kindof PFObject *> *) fetchAll: (nullable NSArray< PFObject * > *)  PF_SWIFT_UNAVAILABLE



Synchronously* fetches all of the PFObject objects with the current data from the server.

Parameters
objectsThe list of objects to fetch.

Provided by category PFObject(Synchronous).

+ (nullable NSArray<__kindof PFObject *> *) fetchAll: (nullable NSArray< PFObject * > *)  objects
error: (NSError **)  error 

Synchronously* fetches all of the PFObject objects with the current data from the server and sets an error if it occurs.

Parameters
objectsThe list of objects to fetch.
errorPointer to an NSError that will be set if necessary.

Provided by category PFObject(Synchronous).

+ (nullable NSArray<__kindof PFObject *> *) fetchAllIfNeeded: (nullable NSArray< PFObject * > *)  PF_SWIFT_UNAVAILABLE

Synchronously* fetches all of the PFObject objects with the current data from the server.

Parameters
objectsThe list of objects to fetch.

Provided by category PFObject(Synchronous).

+ (nullable NSArray<__kindof PFObject *> *) fetchAllIfNeeded: (nullable NSArray< PFObject * > *)  objects
error: (NSError **)  error 

Synchronously* fetches all of the PFObject objects with the current data from the server and sets an error if it occurs.

Parameters
objectsThe list of objects to fetch.
errorPointer to an NSError that will be set if necessary.

Provided by category PFObject(Synchronous).

+ (BFTask<NSArray<__kindof PFObject *> *> *) fetchAllIfNeededInBackground: (nullable NSArray< PFObject * > *)  objects

Fetches all of the PFObject objects with the current data from the server asynchronously.

Parameters
objectsThe list of objects to fetch.
Returns
The task that encapsulates the work being done.
+ (void) fetchAllIfNeededInBackground: (nullable NSArray< PFObject * > *)  objects
block: (nullable PFArrayResultBlock)  block 

Fetches all of the PFObjects with the current data from the server asynchronously and calls the given block.

Parameters
objectsThe list of objects to fetch.
blockThe block to execute. It should have the following argument signature: ^(NSArray *objects, NSError *error).
+ (void) fetchAllIfNeededInBackground: (nullable NSArray< PFObject * > *)  objects
target: (nullable id)  target
selector: ("Please use `PFObject.+fetchAllIfNeededInBackground:block:` instead.")  PARSE_DEPRECATED 

Fetches all of the PFObjects with the current data from the server asynchronously and calls the given callback.

Parameters
objectsThe list of objects to fetch.
targetThe target on which the selector will be called.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(NSArray *)fetchedObjects error:(NSError *)error. error will be nil on success and set if there was an error. fetchedObjects will the array of PFObject objects that were fetched.
Deprecated:
Please use PFObject.+fetchAllIfNeededInBackground:block: instead.

Provided by category PFObject(Deprecated).

+ (BFTask<NSArray<__kindof PFObject *> *> *) fetchAllInBackground: (nullable NSArray< PFObject * > *)  objects



Fetches all of the PFObject objects with the current data from the server asynchronously.

Parameters
objectsThe list of objects to fetch.
Returns
The task that encapsulates the work being done.
+ (void) fetchAllInBackground: (nullable NSArray< PFObject * > *)  objects
block: (nullable PFArrayResultBlock)  block 

Fetches all of the PFObject objects with the current data from the server asynchronously and calls the given block.

Parameters
objectsThe list of objects to fetch.
blockThe block to execute. It should have the following argument signature: ^(NSArray *objects, NSError *error).
+ (void) fetchAllInBackground: (nullable NSArray< PFObject * > *)  objects
target: (nullable id)  target
selector: ("Please use `PFObject.+fetchAllInBackground:block:` instead.")  PARSE_DEPRECATED 



Fetches all of the PFObject objects with the current data from the server asynchronously and calls the given callback.

Parameters
objectsThe list of objects to fetch.
targetThe target on which the selector will be called.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(NSArray *)fetchedObjects error:(NSError *)error. error will be nil on success and set if there was an error. fetchedObjects will the array of PFObject objects that were fetched.
Deprecated:
Please use PFObject.+fetchAllInBackground:block: instead.

Provided by category PFObject(Deprecated).

- (nullable instancetype) fetchFromLocalDatastore: (NSError **)  error

Synchronously* loads data from the local datastore into this object, if it has not been fetched from the server already.

If the object is not stored in the local datastore, this error will be set to return kPFErrorCacheMiss.

Parameters
errorPointer to an NSError that will be set if necessary.

Provided by category PFObject(Synchronous).

- (BFTask<__kindof PFObject *> *) fetchFromLocalDatastoreInBackground



Asynchronously* loads data from the local datastore into this object, if it has not been fetched from the server already.

Returns
The task that encapsulates the work being done.
- (void) fetchFromLocalDatastoreInBackgroundWithBlock: (nullable PFObjectResultBlock)  block

Asynchronously* loads data from the local datastore into this object, if it has not been fetched from the server already.

Parameters
blockThe block to execute. It should have the following argument signature: ^(PFObject *object, NSError *error).
- (nullable instancetype) fetchIfNeeded: (NSError **)  error

Synchronously* fetches the PFObject data from the server if dataAvailable is NO.

Parameters
errorPointer to an NSError that will be set if necessary.

Provided by category PFObject(Synchronous).

- (BFTask<__kindof PFObject *> *) fetchIfNeededInBackground

Fetches the PFObject data asynchronously if dataAvailable is NO, then sets it as a result for the task.

Returns
The task that encapsulates the work being done.
- (void) fetchIfNeededInBackgroundWithBlock: (nullable PFObjectResultBlock)  block

Fetches the PFObject data asynchronously if dataAvailable is NO, then calls the callback block.

Parameters
blockThe block to execute. It should have the following argument signature: ^(PFObject *object, NSError *error).
- (void) fetchIfNeededInBackgroundWithTarget: (nullable id)  target
selector: ("Please use `PFObject.-fetchIfNeededInBackgroundWithBlock:` instead.")  PARSE_DEPRECATED 

Fetches the PFObject's data asynchronously if dataAvailable is NO, then calls the callback.

Parameters
targetThe target on which the selector will be called.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(PFObject *)fetchedObject error:(NSError *)error. error will be nil on success and set if there was an error. refreshedObject will be the PFObject with the refreshed data.
Deprecated:
Please use PFObject.-fetchIfNeededInBackgroundWithBlock: instead.

Provided by category PFObject(Deprecated).

- (BFTask<__kindof PFObject *> *) fetchInBackground

Fetches the PFObject asynchronously and sets it as a result for the task.

Returns
The task that encapsulates the work being done.
- (void) fetchInBackgroundWithBlock: (nullable PFObjectResultBlock)  block

Fetches the PFObject asynchronously and executes the given callback block.

Parameters
blockThe block to execute. It should have the following argument signature: ^(PFObject *object, NSError *error).
- (void) fetchInBackgroundWithTarget: (nullable id)  target
selector: ("Please use `PFObject.-fetchInBackgroundWithBlock:` instead.")  PARSE_DEPRECATED 

Fetches the `PFObject asynchronously and calls the given callback.

Parameters
targetThe target on which the selector will be called.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(PFObject *)refreshedObject error:(NSError *)error. error will be nil on success and set if there was an error. refreshedObject will be the PFObject with the refreshed data.
Deprecated:
Please use PFObject.-fetchInBackgroundWithBlock: instead.

Provided by category PFObject(Deprecated).

- (void) incrementKey: (NSString *)  key



Increments the given key by 1.

Parameters
keyThe key.
- (void) incrementKey: (NSString *)  key
byAmount: (NSNumber *)  amount 

Increments the given key by a number.

Parameters
keyThe key.
amountThe amount to increment.
- (instancetype) initWithClassName: (NSString *)  newClassName



Initializes a new empty PFObject instance with a class name.

Parameters
newClassNameA class name can be any alphanumeric string that begins with a letter. It represents an object in your app, like a 'User' or a 'Document'.
Returns
Returns the object that is instantiated with the given class name.
- (BOOL) isDirtyForKey: (NSString *)  key

Get whether a value associated with a key has been added/updated/removed and not saved yet.

Parameters
keyThe key to check for
Returns
Returns whether this key has been altered and not saved yet.
- (nullable id) objectForKey: (NSString *)  key



Returns the value associated with a given key.

Parameters
keyThe key for which to return the corresponding value.
See also
-objectForKeyedSubscript:
- (nullable id) objectForKeyedSubscript: (NSString *)  key

Returns the value associated with a given key.

This method enables usage of literal syntax on PFObject. E.g. NSString *value = object[@"key"];

Parameters
keyThe key for which to return the corresponding value.
See also
-objectForKey:
+ (instancetype) objectWithClassName: (NSString *)  className

Creates a new PFObject with a class name.

Parameters
classNameA class name can be any alphanumeric string that begins with a letter. It represents an object in your app, like a 'User' or a 'Document'.
Returns
Returns the object that is instantiated with the given class name.
+ (instancetype) objectWithClassName: (NSString *)  className
dictionary: (nullable NSDictionary< NSString *, id > *)  dictionary 

Creates a new PFObject with a class name, initialized with data constructed from the specified set of objects and keys.

Parameters
classNameThe object's class.
dictionaryAn NSDictionary of keys and objects to set on the new PFObject.
Returns
A PFObject with the given class name and set with the given data.
+ (instancetype) objectWithoutDataWithClassName: (NSString *)  className
objectId: (init(withoutDataWithClassName:objectId:))  NS_SWIFT_NAME 

Creates a reference to an existing PFObject for use in creating associations between PFObjects.

Calling dataAvailable on this object will return NO until -fetchIfNeeded has been called. No network request will be made.

Parameters
classNameThe object's class.
objectIdThe object id for the referenced object.
Returns
A PFObject instance without data.
- (BOOL) PF_SWIFT_UNAVAILABLE



Synchronously* saves the PFObject.

Returns
Returns whether the save succeeded.

Provided by category PFObject(Synchronous).

- (nullable instancetype) PF_SWIFT_UNAVAILABLE



Synchronously* fetches the PFObject with the current data from the server.

Provided by category PFObject(Synchronous).

- (nullable instancetype) PF_SWIFT_UNAVAILABLE

Synchronously* fetches the PFObject data from the server if dataAvailable is NO.

Provided by category PFObject(Synchronous).

- (nullable instancetype) PF_SWIFT_UNAVAILABLE



Synchronously* loads data from the local datastore into this object, if it has not been fetched from the server already.

Provided by category PFObject(Synchronous).

- (BOOL) PF_SWIFT_UNAVAILABLE



Synchronously* deletes the PFObject.

Returns
Returns whether the delete succeeded.

Provided by category PFObject(Synchronous).

- (BOOL) PF_SWIFT_UNAVAILABLE



Synchronously* stores the object and every object it points to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call -fetchFromLocalDatastore on it.

Returns
Returns whether the pin succeeded.
See also
-unpin:
PFObjectDefaultPin

Provided by category PFObject(Synchronous).

+ (BOOL) PF_SWIFT_UNAVAILABLE



Synchronously* removes all objects in the local datastore using a default pin name: PFObjectDefaultPin.

Returns
Returns whether the unpin succeeded.
See also
PFObjectDefaultPin

Provided by category PFObject(Synchronous).

- (BOOL) PF_SWIFT_UNAVAILABLE



Synchronously* removes the object and every object it points to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

Returns
Returns whether the unpin succeeded.
See also
- pin: (PFObject(Synchronous))
PFObjectDefaultPin

Provided by category PFObject(Synchronous).

- (BFTask<NSNumber *> *) PF_WATCH_UNAVAILABLE

Saves this object to the server at some unspecified time in the future, even if Parse is currently inaccessible.

Use this when you may not have a solid network connection, and don't need to know when the save completes. If there is some problem with the object such that it can't be saved, it will be silently discarded.

Objects saved with this method will be stored locally in an on-disk cache until they can be delivered to Parse. They will be sent immediately if possible. Otherwise, they will be sent the next time a network connection is available. Objects saved this way will persist even after the app is closed, in which case they will be sent the next time the app is opened. If more than 10MB of data is waiting to be sent, subsequent calls to -saveEventually will cause old saves to be silently discarded until the connection can be re-established, and the queued objects can be saved.

Returns
The task that encapsulates the work being done.
- (BFTask<NSNumber *> *) PF_WATCH_UNAVAILABLE

Deletes this object from the server at some unspecified time in the future, even if Parse is currently inaccessible.

Use this when you may not have a solid network connection, and don't need to know when the delete completes. If there is some problem with the object such that it can't be deleted, the request will be silently discarded.

Delete instructions made with this method will be stored locally in an on-disk cache until they can be transmitted to Parse. They will be sent immediately if possible. Otherwise, they will be sent the next time a network connection is available. Delete requests will persist even after the app is closed, in which case they will be sent the next time the app is opened. If more than 10MB of -saveEventually or -deleteEventually commands are waiting to be sent, subsequent calls to -saveEventually or -deleteEventually will cause old requests to be silently discarded until the connection can be re-established, and the queued requests can go through.

Returns
The task that encapsulates the work being done.
- (BOOL) pin: (NSError **)  error

Synchronously* stores the object and every object it points to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call -fetchFromLocalDatastore on it.

Parameters
errorPointer to an NSError that will be set if necessary.
Returns
Returns whether the pin succeeded.
See also
-unpin:
PFObjectDefaultPin

Provided by category PFObject(Synchronous).

+ (BOOL) pinAll: (nullable NSArray< PFObject * > *)  PF_SWIFT_UNAVAILABLE



Synchronously* stores the objects and every object they point to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call fetchFromLocalDatastore: on it.

Parameters
objectsThe objects to be pinned.
Returns
Returns whether the pin succeeded.
See also
+ unpinAll: (PFObject(Synchronous))
PFObjectDefaultPin

Provided by category PFObject(Synchronous).

+ (BOOL) pinAll: (nullable NSArray< PFObject * > *)  objects
error: (NSError **)  error 

Synchronously* stores the objects and every object they point to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call fetchFromLocalDatastore: on it.

Parameters
objectsThe objects to be pinned.
errorPointer to an NSError that will be set if necessary.
Returns
Returns whether the pin succeeded.
See also
+ unpinAll:error: (PFObject(Synchronous))
PFObjectDefaultPin

Provided by category PFObject(Synchronous).

+ (BOOL) pinAll: (nullable NSArray< PFObject * > *)  objects
withName: (NSString *)  PF_SWIFT_UNAVAILABLE 

Synchronously* stores the objects and every object they point to in the local datastore, recursively.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call fetchFromLocalDatastore: on it.

Parameters
objectsThe objects to be pinned.
nameThe name of the pin.
Returns
Returns whether the pin succeeded.
See also
+ unpinAll:withName: (PFObject(Synchronous))

Provided by category PFObject(Synchronous).

+ (BOOL) pinAll: (nullable NSArray< PFObject * > *)  objects
withName: (NSString *)  name
error: (NSError **)  error 

Synchronously* stores the objects and every object they point to in the local datastore, recursively.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call fetchFromLocalDatastore: on it.

Parameters
objectsThe objects to be pinned.
nameThe name of the pin.
errorPointer to an NSError that will be set if necessary.
Returns
Returns whether the pin succeeded.
See also
+ unpinAll:withName:error: (PFObject(Synchronous))

Provided by category PFObject(Synchronous).

+ (BFTask<NSNumber *> *) pinAllInBackground: (nullable NSArray< PFObject * > *)  objects



Asynchronously* stores the objects and every object they point to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call fetchFromLocalDatastore: on it.

Parameters
objectsThe objects to be pinned.
Returns
The task that encapsulates the work being done.
See also
+ unpinAllInBackground:
PFObjectDefaultPin
+ (void) pinAllInBackground: (nullable NSArray< PFObject * > *)  objects
block: (nullable PFBooleanResultBlock)  block 

Asynchronously* stores the objects and every object they point to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call fetchFromLocalDatastore: on it.

Parameters
objectsThe objects to be pinned.
blockThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
See also
+ unpinAllInBackground:block:
PFObjectDefaultPin
+ (BFTask<NSNumber *> *) pinAllInBackground: (nullable NSArray< PFObject * > *)  objects
withName: (NSString *)  name 

Asynchronously* stores the objects and every object they point to in the local datastore, recursively.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call fetchFromLocalDatastore: on it.

Parameters
objectsThe objects to be pinned.
nameThe name of the pin.
Returns
The task that encapsulates the work being done.
See also
+ unpinAllInBackground:withName:
+ (void) pinAllInBackground: (nullable NSArray< PFObject * > *)  objects
withName: (NSString *)  name
block: (nullable PFBooleanResultBlock)  block 

Asynchronously* stores the objects and every object they point to in the local datastore, recursively.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call fetchFromLocalDatastore: on it.

Parameters
objectsThe objects to be pinned.
nameThe name of the pin.
blockThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
See also
+ unpinAllInBackground:withName:block:
- (BFTask<NSNumber *> *) pinInBackground



Asynchronously* stores the object and every object it points to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call -fetchFromLocalDatastore on it.

Returns
The task that encapsulates the work being done.
See also
-unpinInBackground
PFObjectDefaultPin
- (void) pinInBackgroundWithBlock: (nullable PFBooleanResultBlock)  block

Asynchronously* stores the object and every object it points to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call -fetchFromLocalDatastore on it.

Parameters
blockThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
See also
-unpinInBackgroundWithBlock:
PFObjectDefaultPin
- (BFTask<NSNumber *> *) pinInBackgroundWithName: (NSString *)  name

Asynchronously* stores the object and every object it points to in the local datastore, recursively.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call `-fetchFromLocalDatastore on it.

Parameters
nameThe name of the pin.
Returns
The task that encapsulates the work being done.
See also
- unpinInBackgroundWithName:
- (void) pinInBackgroundWithName: (NSString *)  name
block: (nullable PFBooleanResultBlock)  block 

Asynchronously* stores the object and every object it points to in the local datastore, recursively.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call -fetchFromLocalDatastore on it.

Parameters
nameThe name of the pin.
blockThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
See also
- unpinInBackgroundWithName:block:
- (BOOL) pinWithName: (NSString *)  PF_SWIFT_UNAVAILABLE

Synchronously* stores the object and every object it points to in the local datastore, recursively.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call -fetchFromLocalDatastore on it.

Parameters
nameThe name of the pin.
Returns
Returns whether the pin succeeded.
See also
-unpinWithName:

Provided by category PFObject(Synchronous).

- (BOOL) pinWithName: (NSString *)  name
error: (NSError **)  error 

Synchronously* stores the object and every object it points to in the local datastore, recursively.

If those other objects have not been fetched from Parse, they will not be stored. However, if they have changed data, all the changes will be retained. To get the objects back later, you can use a PFQuery that uses PFQuery.-fromLocalDatastore, or you can create an unfetched pointer with +objectWithoutDataWithClassName:objectId: and then call -fetchFromLocalDatastore on it.

Parameters
nameThe name of the pin.
errorPointer to an NSError that will be set if necessary.
Returns
Returns whether the pin succeeded.
See also
-unpinWithName:

Provided by category PFObject(Synchronous).

- (void) refreshInBackgroundWithTarget: (nullable id)  target
selector: ("Please use `PFObject.-fetchInBackgroundWithBlock:` instead.")  PARSE_DEPRECATED 



Asynchronously* refreshes the PFObject and calls the given callback.

Parameters
targetThe target on which the selector will be called.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(PFObject *)refreshedObject error:(NSError *)error. error will be nil on success and set if there was an error. refreshedObject will be the PFObject with the refreshed data.
Deprecated:
Please use PFObject.-fetchInBackgroundWithBlock: instead.

Provided by category PFObject(Deprecated).

- (PFRelation *) relationforKey: ("Please use -relationForKey: instead.")  PARSE_DEPRECATED

Returns the instance of PFRelation class associated with the given key.

Parameters
keyThe key that the relation is associated with.
Deprecated:
Please use PFObject.-relationForKey: instead.
- (PFRelation *) relationForKey: (NSString *)  key

Returns the instance of PFRelation class associated with the given key.

Parameters
keyThe key that the relation is associated with.
- (void) removeObject: (id)  object
forKey: (NSString *)  key 

Removes all occurrences of an object from the array associated with a given key.

Parameters
objectThe object to remove.
keyThe key.
- (void) removeObjectForKey: (NSString *)  key

Unsets a key on the object.

Parameters
keyThe key.
- (void) removeObjectsInArray: (NSArray *)  objects
forKey: (NSString *)  key 

Removes all occurrences of the objects contained in another array from the array associated with a given key.

Parameters
objectsThe array of objects to remove.
keyThe key.
- (void) revert

Clears any changes to this object made since the last call to save and sets it back to the server state.

- (void) revertObjectForKey: (NSString *)  key

Clears any changes to this object's key that were done after last successful save and sets it back to the server state.

Parameters
keyThe key to revert changes for.
- (BOOL) save: (NSError **)  error

Synchronously* saves the PFObject and sets an error if it occurs.

Parameters
errorPointer to an NSError that will be set if necessary.
Returns
Returns whether the save succeeded.

Provided by category PFObject(Synchronous).

+ (BOOL) saveAll: (nullable NSArray< PFObject * > *)  PF_SWIFT_UNAVAILABLE



Saves a collection of objects *synchronously all at once.

Parameters
objectsThe array of objects to save.
Returns
Returns whether the save succeeded.

Provided by category PFObject(Synchronous).

+ (BOOL) saveAll: (nullable NSArray< PFObject * > *)  objects
error: (NSError **)  error 

Saves a collection of objects synchronously all at once and sets an error if necessary.

Parameters
objectsThe array of objects to save.
errorPointer to an NSError that will be set if necessary.
Returns
Returns whether the save succeeded.

Provided by category PFObject(Synchronous).

+ (BFTask<NSNumber *> *) saveAllInBackground: (nullable NSArray< PFObject * > *)  objects



Saves a collection of objects all at once asynchronously.

Parameters
objectsThe array of objects to save.
Returns
The task that encapsulates the work being done.
+ (void) saveAllInBackground: (nullable NSArray< PFObject * > *)  objects
block: (nullable PFBooleanResultBlock)  block 

Saves a collection of objects all at once asynchronously and executes the block when done.

Parameters
objectsThe array of objects to save.
blockThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
+ (void) saveAllInBackground: (nullable NSArray< PFObject * > *)  objects
target: (nullable id)  target
selector: ("Please use `PFObject.+saveAllInBackground:block:` instead.")  PARSE_DEPRECATED 



Saves a collection of objects all at once asynchronously and calls a callback when done.

Parameters
objectsThe array of objects to save.
targetThe object to call selector on.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)number error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.
Deprecated:
Please use PFObject.+saveAllInBackground:block: instead.

Provided by category PFObject(Deprecated).

- (void) saveEventually: (nullable PFBooleanResultBlock)  PF_WATCH_UNAVAILABLE

Saves this object to the server at some unspecified time in the future, even if Parse is currently inaccessible.

Use this when you may not have a solid network connection, and don't need to know when the save completes. If there is some problem with the object such that it can't be saved, it will be silently discarded. If the save completes successfully while the object is still in memory, then callback will be called.

Objects saved with this method will be stored locally in an on-disk cache until they can be delivered to Parse. They will be sent immediately if possible. Otherwise, they will be sent the next time a network connection is available. Objects saved this way will persist even after the app is closed, in which case they will be sent the next time the app is opened. If more than 10MB of data is waiting to be sent, subsequent calls to -saveEventually: will cause old saves to be silently discarded until the connection can be re-established, and the queued objects can be saved.

Parameters
callbackThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
- (BFTask<NSNumber *> *) saveInBackground



Saves the PFObject asynchronously.

Returns
The task that encapsulates the work being done.
- (void) saveInBackgroundWithBlock: (nullable PFBooleanResultBlock)  block

Saves the PFObject asynchronously and executes the given callback block.

Parameters
blockThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
- (void) saveInBackgroundWithTarget: (nullable id)  target
selector: ("Please use `PFObject.-saveInBackgroundWithBlock:` instead.")  PARSE_DEPRECATED 



Saves the PFObject asynchronously and calls the given callback.

Parameters
targetThe object to call selector on.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.
Deprecated:
Please use PFObject.-saveInBackgroundWithBlock: instead.

Provided by category PFObject(Deprecated).

- (void) setObject: (id)  object
forKey: (NSString *)  key 

Sets the object associated with a given key.

Parameters
objectThe object for key. A strong reference to the object is maintained by PFObject. Raises an NSInvalidArgumentException if object is nil. If you need to represent a nil value - use NSNull.
keyThe key for object. Raises an NSInvalidArgumentException if key is nil.
See also
-setObject:forKeyedSubscript:
- (void) setObject: (id)  object
forKeyedSubscript: (NSString *)  key 

Returns the value associated with a given key.

This method enables usage of literal syntax on PFObject. E.g. object[@"key"] = @"value";

Parameters
objectThe object for key. A strong reference to the object is maintained by PFObject. Raises an NSInvalidArgumentException if object is nil. If you need to represent a nil value - use NSNull.
keyThe key for object. Raises an NSInvalidArgumentException if key is nil.
See also
-setObject:forKey:
- (BOOL) unpin: (NSError **)  error

Synchronously* removes the object and every object it points to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

Parameters
errorPointer to an NSError that will be set if necessary.
Returns
Returns whether the unpin succeeded.
See also
- pin: (PFObject(Synchronous))
PFObjectDefaultPin

Provided by category PFObject(Synchronous).

+ (BOOL) unpinAll: (nullable NSArray< PFObject * > *)  PF_SWIFT_UNAVAILABLE

Synchronously* removes the objects and every object they point to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

Parameters
objectsThe objects.
Returns
Returns whether the unpin succeeded.
See also
+ pinAll: (PFObject(Synchronous))
PFObjectDefaultPin

Provided by category PFObject(Synchronous).

+ (BOOL) unpinAll: (nullable NSArray< PFObject * > *)  objects
error: (NSError **)  error 

Synchronously* removes the objects and every object they point to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

Parameters
objectsThe objects.
errorPointer to an NSError that will be set if necessary.
Returns
Returns whether the unpin succeeded.
See also
+ pinAll:error: (PFObject(Synchronous))
PFObjectDefaultPin

Provided by category PFObject(Synchronous).

+ (BOOL) unpinAll: (nullable NSArray< PFObject * > *)  objects
withName: (NSString *)  PF_SWIFT_UNAVAILABLE 

Synchronously* removes the objects and every object they point to in the local datastore, recursively.

Parameters
objectsThe objects.
nameThe name of the pin.
Returns
Returns whether the unpin succeeded.
See also
+ pinAll:withName: (PFObject(Synchronous))

Provided by category PFObject(Synchronous).

+ (BOOL) unpinAll: (nullable NSArray< PFObject * > *)  objects
withName: (NSString *)  name
error: (NSError **)  error 

Synchronously* removes the objects and every object they point to in the local datastore, recursively.

Parameters
objectsThe objects.
nameThe name of the pin.
errorPointer to an NSError that will be set if necessary.
Returns
Returns whether the unpin succeeded.
See also
+ pinAll:withName:error: (PFObject(Synchronous))

Provided by category PFObject(Synchronous).

+ (BFTask<NSNumber *> *) unpinAllInBackground: (nullable NSArray< PFObject * > *)  objects

Asynchronously* removes the objects and every object they point to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

Parameters
objectsThe objects.
Returns
The task that encapsulates the work being done.
See also
+ pinAllInBackground:
PFObjectDefaultPin
+ (void) unpinAllInBackground: (nullable NSArray< PFObject * > *)  objects
block: (nullable PFBooleanResultBlock)  block 

Asynchronously* removes the objects and every object they point to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

Parameters
objectsThe objects.
blockThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
See also
+ pinAllInBackground:block:
PFObjectDefaultPin
+ (BFTask<NSNumber *> *) unpinAllInBackground: (nullable NSArray< PFObject * > *)  objects
withName: (NSString *)  name 

Asynchronously* removes the objects and every object they point to in the local datastore, recursively.

Parameters
objectsThe objects.
nameThe name of the pin.
Returns
The task that encapsulates the work being done.
See also
+ pinAllInBackground:withName:
+ (void) unpinAllInBackground: (nullable NSArray< PFObject * > *)  objects
withName: (NSString *)  name
block: (nullable PFBooleanResultBlock)  block 

Asynchronously* removes the objects and every object they point to in the local datastore, recursively.

Parameters
objectsThe objects.
nameThe name of the pin.
blockThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
See also
+ pinAllInBackground:withName:block:
+ (BOOL) unpinAllObjects: (NSError **)  error

Synchronously* removes all objects in the local datastore using a default pin name: PFObjectDefaultPin.

Parameters
errorPointer to an NSError that will be set if necessary.
Returns
Returns whether the unpin succeeded.
See also
PFObjectDefaultPin

Provided by category PFObject(Synchronous).

+ (BFTask<NSNumber *> *) unpinAllObjectsInBackground



Asynchronously* removes all objects in the local datastore using a default pin name: PFObjectDefaultPin.

Returns
The task that encapsulates the work being done.
See also
PFObjectDefaultPin
+ (void) unpinAllObjectsInBackgroundWithBlock: (nullable PFBooleanResultBlock)  block

Asynchronously* removes all objects in the local datastore using a default pin name: PFObjectDefaultPin.

Parameters
blockThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
See also
PFObjectDefaultPin
+ (BFTask<NSNumber *> *) unpinAllObjectsInBackgroundWithName: (NSString *)  name

Asynchronously* removes all objects with the specified pin name.

Parameters
nameThe name of the pin.
Returns
The task that encapsulates the work being done.
+ (void) unpinAllObjectsInBackgroundWithName: (NSString *)  name
block: (nullable PFBooleanResultBlock)  block 

Asynchronously* removes all objects with the specified pin name.

Parameters
nameThe name of the pin.
blockThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
+ (BOOL) unpinAllObjectsWithName: (NSString *)  PF_SWIFT_UNAVAILABLE

Synchronously* removes all objects with the specified pin name.

Parameters
nameThe name of the pin.
Returns
Returns whether the unpin succeeded.

Provided by category PFObject(Synchronous).

+ (BOOL) unpinAllObjectsWithName: (NSString *)  name
error: (NSError **)  error 

Synchronously* removes all objects with the specified pin name.

Parameters
nameThe name of the pin.
errorPointer to an NSError that will be set if necessary.
Returns
Returns whether the unpin succeeded.

Provided by category PFObject(Synchronous).

- (BFTask<NSNumber *> *) unpinInBackground



Asynchronously* removes the object and every object it points to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

Returns
The task that encapsulates the work being done.
See also
- pinInBackground
PFObjectDefaultPin
- (void) unpinInBackgroundWithBlock: (nullable PFBooleanResultBlock)  block

Asynchronously* removes the object and every object it points to in the local datastore, recursively, using a default pin name: PFObjectDefaultPin.

Parameters
blockThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
See also
- pinInBackgroundWithBlock:
PFObjectDefaultPin
- (BFTask<NSNumber *> *) unpinInBackgroundWithName: (NSString *)  name

Asynchronously* removes the object and every object it points to in the local datastore, recursively.

Parameters
nameThe name of the pin.
Returns
The task that encapsulates the work being done.
See also
- pinInBackgroundWithName:
- (void) unpinInBackgroundWithName: (NSString *)  name
block: (nullable PFBooleanResultBlock)  block 

Asynchronously* removes the object and every object it points to in the local datastore, recursively.

Parameters
nameThe name of the pin.
blockThe block to execute. It should have the following argument signature: ^(BOOL succeeded, NSError *error).
See also
- pinInBackgroundWithName:block:
- (BOOL) unpinWithName: (NSString *)  PF_SWIFT_UNAVAILABLE

Synchronously* removes the object and every object it points to in the local datastore, recursively.

Parameters
nameThe name of the pin.
Returns
Returns whether the unpin succeeded.
See also
- pinWithName: (PFObject(Synchronous))

Provided by category PFObject(Synchronous).

- (BOOL) unpinWithName: (NSString *)  name
error: (NSError **)  error 

Synchronously* removes the object and every object it points to in the local datastore, recursively.

Parameters
nameThe name of the pin.
errorPointer to an NSError that will be set if necessary.
Returns
Returns whether the unpin succeeded.
See also
- pinWithName:error: (PFObject(Synchronous))

Provided by category PFObject(Synchronous).

Property Documentation

- (PFACL*) ACL
readwritenonatomicstrong

The ACL for this object.

- (NSArray<NSString *>*) allKeys
readnonatomiccopy

Returns an array of the keys contained in this object.

This does not include createdAt, updatedAt, authData, or objectId. It does include things like username and ACL.

- (NSDate*) createdAt
readnonatomicstrong

When the object was created.

- (BOOL) dataAvailable
readnonatomicassign



Gets whether the PFObject has been fetched.

Returns
YES if the PFObject is new or has been fetched or refreshed, otherwise NO.
- (BOOL) dirty
readnonatomicassign



Gets whether any key-value pair in this object (or its children) has been added/updated/removed and not saved yet.

Returns
Returns whether this object has been altered and not saved yet.
- (NSString*) objectId
readwritenonatomicstrong

The id of the object.

- (NSString*) parseClassName
readnonatomicstrong



The class name of the object.

- (NSDate*) updatedAt
readnonatomicstrong

When the object was last updated.


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