PFConfig(Synchronous)

@interface PFConfig (Synchronous)

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

  • Gets the PFConfig object synchronously from the server.

    Declaration

    Objective-C

    + (nullable PFConfig *)getConfig;

    Return Value

    Instance of PFConfig if the operation succeeded, otherwise nil.

  • Gets the PFConfig object synchronously from the server and sets an error if it occurs.

    Declaration

    Objective-C

    + (nullable PFConfig *)getConfig:(NSError *_Nullable *_Nullable)error;

    Parameters

    error

    Pointer to an NSError that will be set if necessary.

    Return Value

    Instance of PFConfig if the operation succeeded, otherwise nil.