package io.flutter.plugins.urllauncher;

import android.content.Context;
import android.content.Intent;
import io.flutter.plugin.common.BasicMessageChannel;
import io.flutter.plugins.urllauncher.Messages;
import io.flutter.plugins.urllauncher.UrlLauncher;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class a implements BasicMessageChannel.MessageHandler, UrlLauncher.IntentResolver {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f6774a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Object f6775b;

    public /* synthetic */ a(int i, Object obj) {
        this.f6774a = i;
        this.f6775b = obj;
    }

    @Override // io.flutter.plugins.urllauncher.UrlLauncher.IntentResolver
    public String getHandlerComponentName(Intent intent) {
        return UrlLauncher.lambda$new$0((Context) this.f6775b, intent);
    }

    @Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
    public void onMessage(Object obj, BasicMessageChannel.Reply reply) {
        switch (this.f6774a) {
            case 0:
                Messages.UrlLauncherApi.lambda$setUp$0((Messages.UrlLauncherApi) this.f6775b, obj, reply);
                break;
            case 1:
                Messages.UrlLauncherApi.lambda$setUp$1((Messages.UrlLauncherApi) this.f6775b, obj, reply);
                break;
            case 2:
                Messages.UrlLauncherApi.lambda$setUp$2((Messages.UrlLauncherApi) this.f6775b, obj, reply);
                break;
            case 3:
                Messages.UrlLauncherApi.lambda$setUp$3((Messages.UrlLauncherApi) this.f6775b, obj, reply);
                break;
            default:
                Messages.UrlLauncherApi.lambda$setUp$4((Messages.UrlLauncherApi) this.f6775b, obj, reply);
                break;
        }
    }
}
