Package 

Interface WebviewJNA.WebviewLibrary.webview_bind_fn_callback

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit apply(String seq, String req, Pointer arg) The callback functionYou should use webview_return to response to the JS
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • apply

         abstract Unit apply(String seq, String req, Pointer arg)

        The callback function

        You should use webview_return to response to the JS

        Parameters:
        seq - the id of request
        req - request string is a JSON array of all the arguments passed to the JavaScript function.
        arg - please ignore it and keep it Pointer.NULL unless you know what you're doing.