导航菜单

页面标题

页面副标题

MX Player v1.97.8 - MxJSBridge.java 源代码

正在查看: MX Player v1.97.8 应用的 MxJSBridge.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.mxtech.videoplayer.jsbridge;

import android.webkit.JavascriptInterface;
import androidx.annotation.Keep;
import defpackage.ng9;
import in.juspay.hypersdk.core.PaymentConstants;
import java.util.Map;

@Keep
public class MxJSBridge {
    private final ng9 dispatcher;

    public MxJSBridge(ng9 ng9Var) {
        this.dispatcher = ng9Var;
    }

    private Map<String, String> createInvokeMaps(String str) {
        return xz3.d("js_action_name", str);
    }

    @JavascriptInterface
    public String apiRequest(String str, String str2, String str3, String str4, String str5) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_apiRequest");
        createInvokeMaps.put(PaymentConstants.URL, str);
        createInvokeMaps.put("method", str2);
        createInvokeMaps.put("headers", str3);
        createInvokeMaps.put("jsonParams", str4);
        createInvokeMaps.put("callback", str5);
        return this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public String apiSyncRequest(String str, String str2, String str3, String str4) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_apiSyncRequest");
        createInvokeMaps.put(PaymentConstants.URL, str);
        createInvokeMaps.put("method", str2);
        createInvokeMaps.put("headers", str3);
        createInvokeMaps.put("jsonParams", str4);
        return this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public String backPressed() {
        return this.dispatcher.a(createInvokeMaps("__js_backPressed"));
    }

    @JavascriptInterface
    public String bindPhoneNumber(String str) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_bind_phone");
        createInvokeMaps.put("callback", str);
        return this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public String callNative(String str) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_call_native");
        createInvokeMaps.put("parameters", str);
        return this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public String checkNetwork() {
        return this.dispatcher.a(createInvokeMaps("__js_checkNetwork"));
    }

    @JavascriptInterface
    public String close() {
        return this.dispatcher.a(createInvokeMaps("__js_close"));
    }

    @JavascriptInterface
    public void contentScroll(int i) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_content_scroll");
        createInvokeMaps.put("offset", String.valueOf(i));
        this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public String deeplink(String str) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_deeplink");
        createInvokeMaps.put("path", str);
        return this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public String getCommonHeader() {
        return this.dispatcher.a(createInvokeMaps("__js_common_header"));
    }

    @JavascriptInterface
    public String getTrackingParameters() {
        return this.dispatcher.a(createInvokeMaps("__js_tracking_parameters"));
    }

    @JavascriptInterface
    public String getUserinfo() {
        return this.dispatcher.a(createInvokeMaps("__js_userinfo"));
    }

    @JavascriptInterface
    public String gotoLogin(String str) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_login");
        createInvokeMaps.put("h5Request", str);
        return this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public void onBackHome() {
        this.dispatcher.a(createInvokeMaps("__js_back_home"));
    }

    @JavascriptInterface
    public void onClaimGift(String str) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_content_click");
        createInvokeMaps.put("json", str);
        this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public void onClosePage() {
        close();
    }

    @JavascriptInterface
    public void onContentClicked(String str) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_content_click");
        createInvokeMaps.put(PaymentConstants.URL, str);
        this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public String onInit() {
        return this.dispatcher.a(createInvokeMaps("__js_init"));
    }

    @JavascriptInterface
    public String onShare(String str) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_share");
        createInvokeMaps.put("parameters", str);
        return this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public String onTrack(String str, String str2) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_onTrack");
        createInvokeMaps.put("trackName", str);
        createInvokeMaps.put("parameters", str2);
        return this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public void payOrder(String str, String str2) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_payOrder");
        createInvokeMaps.put("jsonParams", str);
        createInvokeMaps.put("callback", str2);
        this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public String refreshCoin(String str, String str2) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_refreshClient");
        createInvokeMaps.put("type", str);
        createInvokeMaps.put("value", str2);
        return this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public void requestPgType(String str, String str2) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_pgTypes");
        createInvokeMaps.put("jsonParams", str);
        createInvokeMaps.put("callback", str2);
        this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public void requestTouchFocus() {
        this.dispatcher.a(createInvokeMaps("__js_request_touch_focus"));
    }

    @JavascriptInterface
    public void showGiftsPanel(String str, String str2) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_giftsPanel");
        createInvokeMaps.put("jsonParams", str);
        createInvokeMaps.put("callback", str2);
        this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public String showPrizeList(String str) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_showPrizeList");
        createInvokeMaps.put("uniqueId", str);
        return this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public void showProfileCard(String str, String str2) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_profileCard");
        createInvokeMaps.put("jsonParams", str);
        createInvokeMaps.put("callback", str2);
        this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public void showRechargePanel(String str, String str2) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_rechargePanel");
        createInvokeMaps.put("jsonParams", str);
        createInvokeMaps.put("callback", str2);
        this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public void showSharePanel(String str, String str2) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_sharePanel");
        createInvokeMaps.put("jsonParams", str);
        createInvokeMaps.put("callback", str2);
        this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public String startGame(String str) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_startGame");
        createInvokeMaps.put("info", str);
        return this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public String storage(String str, String str2, String str3) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_storage");
        createInvokeMaps.put("eventName", str);
        createInvokeMaps.put("key", str2);
        createInvokeMaps.put("value", str3);
        return this.dispatcher.a(createInvokeMaps);
    }

    @JavascriptInterface
    public String toast(String str) {
        Map<String, String> createInvokeMaps = createInvokeMaps("__js_toast");
        createInvokeMaps.put("msg", str);
        return this.dispatcher.a(createInvokeMaps);
    }
}