public class WebFilePreviewActivity extends RongBaseActivity implements android.view.View.OnClickListener
Modifier and Type | Field and Description |
---|---|
static int |
DELETED |
static int |
DOWNLOAD_CANCEL |
static int |
DOWNLOAD_ERROR |
static int |
DOWNLOAD_PAUSE |
static int |
DOWNLOAD_SUCCESS |
static int |
DOWNLOADED |
static int |
DOWNLOADING |
protected android.view.View |
mCancel |
protected io.rong.imkit.activity.WebFilePreviewActivity.FileDownloadInfo |
mFileDownloadInfo |
static int |
NOT_DOWNLOAD |
static int |
REQUEST_CODE_PERMISSION |
mContentView, mTitleBar
Constructor and Description |
---|
WebFilePreviewActivity() |
Modifier and Type | Method and Description |
---|---|
void |
onClick(android.view.View v) |
protected void |
onCreate(android.os.Bundle savedInstanceState) |
protected void |
onRestart() |
void |
openFile(java.lang.String fileName,
java.lang.String fileSavePath) |
protected boolean |
openInsidePreview(java.lang.String fileName,
java.lang.String fileSavePath) |
protected void |
refreshDownloadState() |
void |
setContentView(int resId) |
attachBaseContext, initStatusBar, onRequestPermissionsResult
public static final int NOT_DOWNLOAD
public static final int DOWNLOADED
public static final int DOWNLOADING
public static final int DELETED
public static final int DOWNLOAD_ERROR
public static final int DOWNLOAD_CANCEL
public static final int DOWNLOAD_SUCCESS
public static final int DOWNLOAD_PAUSE
public static final int REQUEST_CODE_PERMISSION
protected android.view.View mCancel
protected io.rong.imkit.activity.WebFilePreviewActivity.FileDownloadInfo mFileDownloadInfo
protected void onCreate(android.os.Bundle savedInstanceState)
onCreate
in class RongBaseActivity
public void setContentView(int resId)
setContentView
in class RongBaseActivity
protected void refreshDownloadState()
public void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
public void openFile(java.lang.String fileName, java.lang.String fileSavePath)
protected boolean openInsidePreview(java.lang.String fileName, java.lang.String fileSavePath)
protected void onRestart()