package com.mayi.demo.web;

import android.webkit.JavascriptInterface;

import com.mayi.fastdevelop.web.CompletionHandler;

import org.json.JSONException;


/**
 * Created by du on 16/12/31.
 */

public class JsEchoApi {

    @JavascriptInterface
    public Object syn(Object args) throws JSONException {
        return  args;
    }

    @JavascriptInterface
    public void asyn(Object args, CompletionHandler handler){
        handler.complete(args);
    }
}