package com.android.installreferrer.api;

import android.content.Context;
import com.bytedance.covode.number.Covode;

public abstract class InstallReferrerClient {

    /* renamed from: com.android.installreferrer.api.InstallReferrerClient$1  reason: invalid class name */
    public static /* synthetic */ class AnonymousClass1 {
        static {
            Covode.recordClassIndex(2371);
        }
    }

    static {
        Covode.recordClassIndex(2370);
    }

    public abstract void endConnection();

    public abstract ReferrerDetails getInstallReferrer();

    public abstract boolean isReady();

    public abstract void startConnection(InstallReferrerStateListener installReferrerStateListener);

    public static final class Builder {
        public final Context mContext;

        static {
            Covode.recordClassIndex(2372);
        }

        public Builder(Context context) {
            this.mContext = context;
        }

        public /* synthetic */ Builder(Context context, AnonymousClass1 r2) {
            this(context);
        }

        public final InstallReferrerClient build() {
            Context context = this.mContext;
            if (context != null) {
                return new InstallReferrerClientImpl(context);
            }
            throw new IllegalArgumentException("Please provide a valid Context.");
        }
    }

    public static Builder newBuilder(Context context) {
        return new Builder(context, (AnonymousClass1) null);
    }
}
