@Override public void onDownloadTaskFinish(String uid, String filePath) { if (mDownloadListener != null) { try { mDownloadListener.onDownloadTaskFinish(uid, filePath); } catch (RemoteException e) { e.printStackTrace(); } } }
@Override public void onDownloadTaskProgress(String uid, float progress) { if (mDownloadListener != null) { try { mDownloadListener.onDownloadTaskProgress(uid, progress); } catch (RemoteException e) { e.printStackTrace(); } } }
@Override public void onDownloadTaskAdd(String uid) { if (mDownloadListener != null) { try { mDownloadListener.onDownloadTaskAdd(uid); } catch (RemoteException e) { e.printStackTrace(); } } }
@Override public void onDownloadTaskBaseInfo(String uid, String filepath, int filesize) { if (mDownloadListener != null) { try { mDownloadListener.onDownloadTaskBaseInfo(uid, filepath, filesize); } catch (RemoteException e) { e.printStackTrace(); } } }
@Override public void onDownloadTaskError(String uid, int errorCode) { if (mDownloadListener != null) { try { mDownloadListener.onDownloadTaskError(uid, errorCode); } catch (RemoteException e) { e.printStackTrace(); } } }