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 -> Any

    Parameters

    name

    name of function to invoke

    args

    list of parameters to pass to function

    error

    error object reported by invocation

    Return Value

    a return value of the invocation.