Ibm mobilefirst Mobilefirst平台的sendWithCompletionHandler和InvokeProcess之间有什么区别?

Ibm mobilefirst Mobilefirst平台的sendWithCompletionHandler和InvokeProcess之间有什么区别?,ibm-mobilefirst,Ibm Mobilefirst,从“iOS应用程序的Objective-C客户端API参考”中,我发现从iOS应用程序调用适配器时使用sendWithCompletionHandler和InvokeProcess。但在swift中这两种方法有什么不同 非常感谢。重新绘制已删除的答案: sendWithCompletionHandler: 它是用于从本机应用程序(iOS)调用客户端适配器资源的objective c或swift api 向资源发送请求。请求必须已用有效路径初始化 - (void)sendWithCompletio

从“iOS应用程序的Objective-C客户端API参考”中,我发现从iOS应用程序调用适配器时使用sendWithCompletionHandler和InvokeProcess。但在swift中这两种方法有什么不同


非常感谢。

重新绘制已删除的答案:

sendWithCompletionHandler: 它是用于从本机应用程序(iOS)调用客户端适配器资源的objective c或swift api

向资源发送请求。请求必须已用有效路径初始化

- (void)sendWithCompletionHandler:(void ( ^ ) ( IMFResponse *response , NSError *error ))completionHandler
参数
completionHandler

  • 请求完成时要调用的块
讨论

如果请求成功完成,则完成块的错误参数为nil,响应参数包含服务器响应。如果请求失败,错误参数不是nil,并且包含错误描述。response参数可能包含来自服务器的响应,也可能为nil

声明于

IMFResourceRequest.h
更多信息请查看此链接

调用过程: 此方法调用IBM®Worklight®适配器公开的过程 它是混合应用程序(即iOS、android和Windows8)客户端调用适配器资源的javascript api

语法

WL.Client invokeProcedure (invocationData, options)

更多查看此链接

我不理解这个问题。请你重新措辞好吗?检查这个链接
WL.Client invokeProcedure (invocationData, options)