|
LuxChat
2.0
Instant messenger for iOS
|
#import <PFObject+Synchronous.h>
Instance Methods | |
| (BOOL) | - PF_SWIFT_UNAVAILABLE |
More... | |
| (BOOL) | - save: |
| (nullable instancetype) | - PF_SWIFT_UNAVAILABLE |
More... | |
| (nullable instancetype) | - fetch: |
| (nullable instancetype) | - PF_SWIFT_UNAVAILABLE |
| (nullable instancetype) | - fetchIfNeeded: |
| (nullable instancetype) | - PF_SWIFT_UNAVAILABLE |
More... | |
| (nullable instancetype) | - fetchFromLocalDatastore: |
| (BOOL) | - PF_SWIFT_UNAVAILABLE |
More... | |
| (BOOL) | - delete: |
| (BOOL) | - PF_SWIFT_UNAVAILABLE |
More... | |
| (BOOL) | - pin: |
| (BOOL) | - pinWithName: |
| (BOOL) | - pinWithName:error: |
| (BOOL) | - PF_SWIFT_UNAVAILABLE |
More... | |
| (BOOL) | - unpin: |
| (BOOL) | - unpinWithName: |
| (BOOL) | - unpinWithName:error: |
Class Methods | |
| (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) | + PF_SWIFT_UNAVAILABLE |
More... | |
| (BOOL) | + unpinAllObjects: |
| (BOOL) | + unpinAllObjectsWithName: |
| (BOOL) | + unpinAllObjectsWithName:error: |
| (BOOL) | + unpinAll: |
| (BOOL) | + unpinAll:error: |
| (BOOL) | + unpinAll:withName: |
| (BOOL) | + unpinAll:withName: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 PFObject 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.
| - (BOOL) delete: | (NSError **) | error |
| + (BOOL) deleteAll: | (nullable NSArray< PFObject * > *) | PF_SWIFT_UNAVAILABLE |
Synchronously* deletes a collection of objects all at once.
| objects | The array of objects to delete. |
Extends class PFObject.
| + (BOOL) deleteAll: | (nullable NSArray< PFObject * > *) | objects | |
| error: | (NSError **) | error | |
Synchronously* deletes a collection of objects all at once and sets an error if necessary.
| objects | The array of objects to delete. |
| error | Pointer to an NSError that will be set if necessary. |
Extends class PFObject.
| - (nullable instancetype) fetch: | (NSError **) | error |
| - (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.
| error | Pointer to an NSError that will be set if necessary. |
Extends class PFObject.
| - (nullable instancetype) fetchIfNeeded: | (NSError **) | error |
| - (nullable instancetype) PF_SWIFT_UNAVAILABLE |
| - (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.
-unpin: PFObjectDefaultPin Extends class PFObject.
| - (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.
Extends class PFObject.
| + (BOOL) PF_SWIFT_UNAVAILABLE |
Synchronously* removes all objects in the local datastore using a default pin name: PFObjectDefaultPin.
Extends class PFObject.
| - (BOOL) PF_SWIFT_UNAVAILABLE |
| - (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.
Extends class PFObject.
| - (nullable instancetype) PF_SWIFT_UNAVAILABLE |
| - (BOOL) PF_SWIFT_UNAVAILABLE |
| - (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.
| error | Pointer to an NSError that will be set if necessary. |
-unpin: PFObjectDefaultPin Extends class PFObject.
| + (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.
| objects | The objects to be pinned. |
Extends class PFObject.
| + (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.
| objects | The objects to be pinned. |
| error | Pointer to an NSError that will be set if necessary. |
Extends class PFObject.
| + (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.
| objects | The objects to be pinned. |
| name | The name of the pin. |
Extends class PFObject.
| + (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.
| objects | The objects to be pinned. |
| name | The name of the pin. |
| error | Pointer to an NSError that will be set if necessary. |
Extends class PFObject.
| - (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.
| name | The name of the pin. |
-unpinWithName: Extends class PFObject.
| - (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.
| name | The name of the pin. |
| error | Pointer to an NSError that will be set if necessary. |
-unpinWithName: Extends class PFObject.
| - (BOOL) save: | (NSError **) | error |
| + (BOOL) saveAll: | (nullable NSArray< PFObject * > *) | PF_SWIFT_UNAVAILABLE |
Saves a collection of objects *synchronously all at once.
| objects | The array of objects to save. |
Extends class PFObject.
| + (BOOL) saveAll: | (nullable NSArray< PFObject * > *) | objects | |
| error: | (NSError **) | error | |
Saves a collection of objects synchronously all at once and sets an error if necessary.
| objects | The array of objects to save. |
| error | Pointer to an NSError that will be set if necessary. |
Extends class PFObject.
| - (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.
| error | Pointer to an NSError that will be set if necessary. |
Extends class PFObject.
| + (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.
| objects | The objects. |
Extends class PFObject.
| + (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.
| objects | The objects. |
| error | Pointer to an NSError that will be set if necessary. |
Extends class PFObject.
| + (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.
| objects | The objects. |
| name | The name of the pin. |
Extends class PFObject.
| + (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.
| objects | The objects. |
| name | The name of the pin. |
| error | Pointer to an NSError that will be set if necessary. |
Extends class PFObject.
| + (BOOL) unpinAllObjects: | (NSError **) | error |
Synchronously* removes all objects in the local datastore using a default pin name: PFObjectDefaultPin.
| error | Pointer to an NSError that will be set if necessary. |
Extends class PFObject.
| + (BOOL) unpinAllObjectsWithName: | (NSString *) | PF_SWIFT_UNAVAILABLE |
Synchronously* removes all objects with the specified pin name.
| name | The name of the pin. |
Extends class PFObject.
| + (BOOL) unpinAllObjectsWithName: | (NSString *) | name | |
| error: | (NSError **) | error | |
Synchronously* removes all objects with the specified pin name.
| name | The name of the pin. |
| error | Pointer to an NSError that will be set if necessary. |
Extends class PFObject.
| - (BOOL) unpinWithName: | (NSString *) | PF_SWIFT_UNAVAILABLE |
Synchronously* removes the object and every object it points to in the local datastore, recursively.
| name | The name of the pin. |
Extends class PFObject.
| - (BOOL) unpinWithName: | (NSString *) | name | |
| error: | (NSError **) | error | |
Synchronously* removes the object and every object it points to in the local datastore, recursively.
| name | The name of the pin. |
| error | Pointer to an NSError that will be set if necessary. |
Extends class PFObject.
1.8.9.1