PFCloud

@interface PFCloud : NSObject

The PFCloud class provides methods for interacting with Parse Cloud Functions.

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

    Declaration

    Objective-C

    + (id)callFunctionInBackground:(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 task, that encapsulates the work being done.

  • Calls the given cloud function asynchronously with the parameters provided and executes the given block when it is done.

    Declaration

    Objective-C

    + (void)callFunctionInBackground:(nonnull NSString *)function
                      withParameters:(nullable NSDictionary *)parameters
                               block:(nullable PFIdResultBlock)block;

    Parameters

    function

    The function name to call.

    parameters

    The parameters to send to the function.

    block

    The block to execute when the function call finished. It should have the following argument signature: ^(id result, NSError *error).