package ed;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.UiThread;
import com.google.android.gms.measurement.internal.c0;
import java.nio.ByteBuffer;

/* JADX INFO: loaded from: classes.dex */
public interface i {
    c0 a(androidx.browser.trusted.l lVar);

    default h b() {
        return a(new androidx.browser.trusted.l(7));
    }

    @UiThread
    void send(@NonNull String str, @Nullable ByteBuffer byteBuffer);

    @UiThread
    void send(@NonNull String str, @Nullable ByteBuffer byteBuffer, @Nullable g gVar);

    @UiThread
    void setMessageHandler(@NonNull String str, @Nullable f fVar);

    @UiThread
    default void setMessageHandler(@NonNull String str, @Nullable f fVar, @Nullable h hVar) {
        if (hVar != null) {
            throw new UnsupportedOperationException("setMessageHandler called with nonnull taskQueue is not supported.");
        }
        setMessageHandler(str, fVar);
    }
}
