package com.ym.modulecommon.utils;

import android.annotation.TargetApi;
import android.net.Uri;
import android.os.Build;
import android.webkit.ValueCallback;
import android.webkit.WebChromeClient;
import android.webkit.WebView;


/**
 * Copyright @ 2018 Bitgoose All rights reserved.
 *
 * @class name: MyWebChromeClient
 * @class describe:
 * @author: fuxin
 * @date: 2019/1/21 下午6:44
 */
public class AdNewsWebChromeClient extends WebChromeClient {

    /**
     * For Android 3.0-
     */
    public void openFileChooser(ValueCallback<Uri> uploadMsg) {
    }

    /**
     * For Android 3.0+
     */
    public void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType) {
    }

    /**
     * For Android 4.1+
     */
    public void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, String capture) {
    }

    /**
     * For Android 5.0+
     */
    @TargetApi(Build.VERSION_CODES.LOLLIPOP)
    public boolean onShowFileChooser(WebView mWebView, ValueCallback<Uri[]> filePathCallback, FileChooserParams fileChooserParams) {
        return super.onShowFileChooser(mWebView,filePathCallback,fileChooserParams);
    }


}
