LCCloud

Objective-C

@interface LCCloud : NSObject

Swift

class LCCloud : NSObject

Call the cloud code from client

  • Undocumented

    Declaration

    Objective-C

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

    Swift

    class func callFunction(_ function: String, withParameters parameters: [AnyHashable : Any]?) -> Any
  • Undocumented

    Declaration

    Objective-C

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

    Swift

    class func callFunction(_ function: String, withParameters parameters: [AnyHashable : Any]?, error: NSErrorPointer) -> Any
  • Undocumented

    Declaration

    Objective-C

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

    Swift

    class func callFunction(inBackground function: String, withParameters parameters: [AnyHashable : Any]?, block: @escaping LCIdResultBlock)
  • Undocumented

    Declaration

    Objective-C

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

    Swift

    class func rpcFunction(_ function: String, withParameters parameters: Any?) -> Any
  • Undocumented

    Declaration

    Objective-C

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

    Swift

    class func rpcFunction(_ function: String, withParameters parameters: Any?, error: NSErrorPointer) -> Any
  • Undocumented

    Declaration

    Objective-C

    + (void)rpcFunctionInBackground:(nonnull NSString *)function
                     withParameters:(nullable id)parameters
                              block:(nonnull LCIdResultBlock)block;

    Swift

    class func rpcFunction(inBackground function: String, withParameters parameters: Any?, block: @escaping LCIdResultBlock)
  • Set call what production mode’s cloud code

    Declaration

    Objective-C

    + (void)setProductionMode:(BOOL)isProduction;

    Swift

    class func setProductionMode(_ isProduction: Bool)

    Parameters

    isProduction

    the production mode or test mode