InvocationProcessor
@protocol InvocationProcessor <NSObject>
An interface with methods to process invocation requests coming from a UIWebView
-
Processes an invocation coming from the ios_sync.js JS library. The library must be in the webpage.
Declaration
Objective-C
- (id)processFunctionFromJS:(NSString *)name withArgs:(NSArray *)args error:(NSError **)error;Swift
func processFunction(fromJS name: String!, withArgs args: [Any]!) throws -> AnyParameters
namename of function to invoke
argslist of parameters to pass to function
errorerror object reported by invocation
Return Value
a return value of the invocation.
View on GitHub
InvocationProcessor Protocol Reference