LCEngine
public class LCEngine
LeanCloud Cloud Engine Client
-
Call the cloud function synchronously.
Declaration
Swift
public static func run( application: LCApplication = .default, _ function: String, parameters: [String: Any]? = nil) -> LCGenericResult<Any>Parameters
applicationThe application.
functionThe name of the function in the cloud.
parametersThe parameters passing to the function in the cloud.
-
Call the cloud function asynchronously.
Declaration
Swift
@discardableResult public static func run( application: LCApplication = .default, _ function: String, parameters: [String: Any]? = nil, completionQueue: DispatchQueue = .main, completion: @escaping (LCGenericResult<Any>) -> Void) -> LCRequestParameters
applicationThe application.
functionThe name of the function in the cloud.
parametersThe parameters passing to the function in the cloud.
completionQueueThe queue where the
completionbe executed, default is main.completionResult callback.
-
RPC call the cloud function synchronously.
Declaration
Swift
public static func call( application: LCApplication = .default, _ function: String, parameters: LCDictionaryConvertible? = nil) -> LCValueOptionalResultParameters
applicationThe application.
functionThe name of the function in the cloud.
parametersThe parameters passing to the function in the cloud.
-
RPC call the cloud function asynchronously.
Declaration
Swift
@discardableResult public static func call( application: LCApplication = .default, _ function: String, parameters: LCDictionaryConvertible? = nil, completionQueue: DispatchQueue = .main, completion: @escaping (LCValueOptionalResult) -> Void) -> LCRequestParameters
applicationThe application.
functionThe name of the function in the cloud.
parametersThe parameters passing to the function in the cloud.
completionQueueThe queue where the
completionbe executed, default is main.completionResult callback.
-
RPC call the cloud function synchronously.
Declaration
Swift
public static func call( application: LCApplication = .default, _ function: String, parameters: LCObject) -> LCValueOptionalResultParameters
applicationThe application.
functionThe name of the function in the cloud.
parametersThe parameters passing to the function in the cloud.
-
RPC call the cloud function asynchronously.
Declaration
Swift
@discardableResult public static func call( application: LCApplication = .default, _ function: String, parameters: LCObject, completionQueue: DispatchQueue = .main, completion: @escaping (LCValueOptionalResult) -> Void) -> LCRequestParameters
applicationThe application.
functionThe name of the function in the cloud.
parametersThe parameters passing to the function in the cloud.
completionQueueThe queue where the
completionbe executed, default is main.completionResult callback.
View on GitHub
Install in Dash
LCEngine Class Reference