package com.pichillilorenzo.flutter_inappwebview_android.in_app_browser;

import androidx.annotation.NonNull;
import com.pichillilorenzo.flutter_inappwebview_android.types.ChannelDelegateImpl;
import com.pichillilorenzo.flutter_inappwebview_android.types.InAppBrowserMenuItem;
import ed.u;
import java.util.HashMap;
import xyz.stream.download.config.InnerConstant;

/* JADX INFO: loaded from: classes.dex */
public class InAppBrowserChannelDelegate extends ChannelDelegateImpl {
    public InAppBrowserChannelDelegate(@NonNull u uVar) {
        super(uVar);
    }

    public void onBrowserCreated() {
        u channel = getChannel();
        if (channel == null) {
            return;
        }
        channel.invokeMethod("onBrowserCreated", new HashMap());
    }

    public void onExit() {
        u channel = getChannel();
        if (channel == null) {
            return;
        }
        channel.invokeMethod("onExit", new HashMap());
    }

    public void onMenuItemClicked(InAppBrowserMenuItem inAppBrowserMenuItem) {
        u channel = getChannel();
        if (channel == null) {
            return;
        }
        HashMap map = new HashMap();
        map.put(InnerConstant.Db.f36069id, Integer.valueOf(inAppBrowserMenuItem.getId()));
        channel.invokeMethod("onMenuItemClicked", map);
    }
}
