package com.applovin.array.apphub.aidl; import android.os.Binder; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; import android.os.RemoteException; /* loaded from: classes.dex */ public interface IAppHubDirectDownloadServiceCallback extends IInterface { public static final String DESCRIPTOR = "com.applovin.array.apphub.aidl.IAppHubDirectDownloadServiceCallback"; public static class Default implements IAppHubDirectDownloadServiceCallback { @Override // android.os.IInterface public IBinder asBinder() { return null; } @Override // com.applovin.array.apphub.aidl.IAppHubDirectDownloadServiceCallback public void onAppDetailsDismissed(String str) throws RemoteException { } @Override // com.applovin.array.apphub.aidl.IAppHubDirectDownloadServiceCallback public void onAppDetailsShown(String str) throws RemoteException { } @Override // com.applovin.array.apphub.aidl.IAppHubDirectDownloadServiceCallback public void onDownloadStarted(String str) throws RemoteException { } @Override // com.applovin.array.apphub.aidl.IAppHubDirectDownloadServiceCallback public void onError(String str, String str2) throws RemoteException { } } void onAppDetailsDismissed(String str) throws RemoteException; void onAppDetailsShown(String str) throws RemoteException; void onDownloadStarted(String str) throws RemoteException; void onError(String str, String str2) throws RemoteException; public static abstract class Stub extends Binder implements IAppHubDirectDownloadServiceCallback { static final int TRANSACTION_onAppDetailsDismissed = 2; static final int TRANSACTION_onAppDetailsShown = 1; static final int TRANSACTION_onDownloadStarted = 3; static final int TRANSACTION_onError = 4; public static class Proxy implements IAppHubDirectDownloadServiceCallback { private IBinder mRemote; public Proxy(IBinder iBinder) { this.mRemote = iBinder; } @Override // android.os.IInterface public IBinder asBinder() { return this.mRemote; } public String getInterfaceDescriptor() { return IAppHubDirectDownloadServiceCallback.DESCRIPTOR; } @Override // com.applovin.array.apphub.aidl.IAppHubDirectDownloadServiceCallback public void onAppDetailsDismissed(String str) throws RemoteException { Parcel obtain = Parcel.obtain(); try { obtain.writeInterfaceToken(IAppHubDirectDownloadServiceCallback.DESCRIPTOR); obtain.writeString(str); this.mRemote.transact(2, obtain, null, 1); } finally { obtain.recycle(); } } @Override // com.applovin.array.apphub.aidl.IAppHubDirectDownloadServiceCallback public void onAppDetailsShown(String str) throws RemoteException { Parcel obtain = Parcel.obtain(); try { obtain.writeInterfaceToken(IAppHubDirectDownloadServiceCallback.DESCRIPTOR); obtain.writeString(str); this.mRemote.transact(1, obtain, null, 1); } finally { obtain.recycle(); } } @Override // com.applovin.array.apphub.aidl.IAppHubDirectDownloadServiceCallback public void onDownloadStarted(String str) throws RemoteException { Parcel obtain = Parcel.obtain(); try { obtain.writeInterfaceToken(IAppHubDirectDownloadServiceCallback.DESCRIPTOR); obtain.writeString(str); this.mRemote.transact(3, obtain, null, 1); } finally { obtain.recycle(); } } @Override // com.applovin.array.apphub.aidl.IAppHubDirectDownloadServiceCallback public void onError(String str, String str2) throws RemoteException { Parcel obtain = Parcel.obtain(); try { obtain.writeInterfaceToken(IAppHubDirectDownloadServiceCallback.DESCRIPTOR); obtain.writeString(str); obtain.writeString(str2); this.mRemote.transact(4, obtain, null, 1); } finally { obtain.recycle(); } } } public Stub() { attachInterface(this, IAppHubDirectDownloadServiceCallback.DESCRIPTOR); } public static IAppHubDirectDownloadServiceCallback asInterface(IBinder iBinder) { if (iBinder == null) { return null; } IInterface queryLocalInterface = iBinder.queryLocalInterface(IAppHubDirectDownloadServiceCallback.DESCRIPTOR); return (queryLocalInterface == null || !(queryLocalInterface instanceof IAppHubDirectDownloadServiceCallback)) ? new Proxy(iBinder) : (IAppHubDirectDownloadServiceCallback) queryLocalInterface; } @Override // android.os.IInterface public IBinder asBinder() { return this; } @Override // android.os.Binder public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { if (i >= 1 && i <= 16777215) { parcel.enforceInterface(IAppHubDirectDownloadServiceCallback.DESCRIPTOR); } if (i == 1598968902) { parcel2.writeString(IAppHubDirectDownloadServiceCallback.DESCRIPTOR); return true; } if (i == 1) { onAppDetailsShown(parcel.readString()); } else if (i == 2) { onAppDetailsDismissed(parcel.readString()); } else if (i == 3) { onDownloadStarted(parcel.readString()); } else { if (i != 4) { return super.onTransact(i, parcel, parcel2, i2); } onError(parcel.readString(), parcel.readString()); } return true; } } }