public class RemotePDFViewPager extends ViewPager implements DownloadFile.Listener
| Modifier and Type | Class and Description |
|---|---|
class |
RemotePDFViewPager.NullListener |
| Modifier and Type | Field and Description |
|---|---|
protected android.content.Context |
context |
protected DownloadFile |
downloadFile |
protected DownloadFile.Listener |
listener |
| Constructor and Description |
|---|
RemotePDFViewPager(android.content.Context context,
android.util.AttributeSet attrs) |
RemotePDFViewPager(android.content.Context context,
DownloadFile downloadFile,
java.lang.String pdfUrl,
DownloadFile.Listener listener) |
RemotePDFViewPager(android.content.Context context,
java.lang.String pdfUrl,
DownloadFile.Listener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(java.lang.Exception e) |
boolean |
onInterceptTouchEvent(android.view.MotionEvent ev)
PDFViewPager uses PhotoView, so this bugfix should be added
Issue explained in https://github.com/chrisbanes/PhotoView
|
void |
onProgressUpdate(int progress,
int total) |
void |
onSuccess(java.lang.String url,
java.lang.String destinationPath) |
void |
setDownloader(DownloadFile downloadFile) |
protected android.content.Context context
protected DownloadFile downloadFile
protected DownloadFile.Listener listener
public RemotePDFViewPager(android.content.Context context,
java.lang.String pdfUrl,
DownloadFile.Listener listener)
public RemotePDFViewPager(android.content.Context context,
DownloadFile downloadFile,
java.lang.String pdfUrl,
DownloadFile.Listener listener)
public RemotePDFViewPager(android.content.Context context,
android.util.AttributeSet attrs)
public void setDownloader(DownloadFile downloadFile)
public void onSuccess(java.lang.String url,
java.lang.String destinationPath)
onSuccess in interface DownloadFile.Listenerpublic void onFailure(java.lang.Exception e)
onFailure in interface DownloadFile.Listenerpublic void onProgressUpdate(int progress,
int total)
onProgressUpdate in interface DownloadFile.Listenerpublic boolean onInterceptTouchEvent(android.view.MotionEvent ev)