Beispiel #1
0
    public void CallBoundJavaScriptCallback(string _MethodName)
    {
        OnJavaScriptMethodCall callback = null;

        if (m_JavaScriptMethodCallCallbacks.TryGetValue(_MethodName, out callback))
        {
            callback(this);
        }
    }
Beispiel #2
0
    public void BindJavaScriptCallback(string _MethodName, OnJavaScriptMethodCall _Callback)
    {
        if (_Callback == null)
        {
            return;
        }

        m_JavaScriptMethodCallCallbacks[_MethodName] = _Callback;

        awe_webview_js_setmethod(m_Instance, _MethodName, false);
    }
    public void BindJavaScriptCallback( string _MethodName, OnJavaScriptMethodCall _Callback )
    {
        if (_Callback == null)
            return;

        m_JavaScriptMethodCallCallbacks[_MethodName] = _Callback;

        awe_webview_js_setmethod(m_Instance, _MethodName, false);
    }
 private static extern void awe_jsmethodhandler_register_callback_onmethodcall( OnJavaScriptMethodCall _Callback );
Beispiel #5
0
 extern static private void awe_jsmethodhandler_register_callback_onmethodcall(OnJavaScriptMethodCall _Callback);