PFCloud(Synchronous)

@interface PFCloud (Synchronous)

This category lists all methods of PFCloud 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.

  • Calls the given cloud function synchronously with the parameters provided.

    Declaration

    Objective-C

    + (nullable id)callFunction:(nonnull NSString *)function
                 withParameters:(nullable NSDictionary *)parameters;

    Parameters

    function

    The function name to call.

    parameters

    The parameters to send to the function.

    Return Value

    The response from the cloud function.

  • Calls the given cloud function synchronously with the parameters provided and sets the error if there is one.

    Declaration

    Objective-C

    + (nullable id)callFunction:(nonnull NSString *)function
                 withParameters:(nullable NSDictionary *)parameters
                          error:(NSError *_Nullable *_Nullable)error;

    Parameters

    function

    The function name to call.

    parameters

    The parameters to send to the function.

    error

    Pointer to an NSError that will be set if necessary.

    Return Value

    The response from the cloud function. This result could be a NSDictionary, an NSArray, NSNumber or NSString.