Skip navigation links
A B C D E F G H I K L M N O P R S T U V W X _ 

A

AbstractUpdateParser - Class in com.xuexiang.xupdate.proxy.impl
默认是使用同步解析器,因此异步解析方法不需要实现
AbstractUpdateParser() - Constructor for class com.xuexiang.xupdate.proxy.impl.AbstractUpdateParser
 
AbstractUpdateProxy - Class in com.xuexiang.xupdate.proxy.impl
简单的版本更新代理
AbstractUpdateProxy() - Constructor for class com.xuexiang.xupdate.proxy.impl.AbstractUpdateProxy
 
apkCacheDir(String) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设置apk下载的缓存目录
ApkInstallUtils - Class in com.xuexiang.xupdate.utils
APK安装工具类
asyncGet(String, Map<String, Object>, IUpdateHttpService.Callback) - Method in interface com.xuexiang.xupdate.proxy.IUpdateHttpService
异步get
asyncPost(String, Map<String, Object>, IUpdateHttpService.Callback) - Method in interface com.xuexiang.xupdate.proxy.IUpdateHttpService
异步post

B

backgroundDownload() - Method in class com.xuexiang.xupdate.proxy.impl.DefaultPrompterProxyImpl
 
backgroundDownload() - Method in class com.xuexiang.xupdate.proxy.impl.DefaultUpdateDownloader
后台下载更新
backgroundDownload() - Method in interface com.xuexiang.xupdate.proxy.IPrompterProxy
后台下载
backgroundDownload() - Method in interface com.xuexiang.xupdate.proxy.IUpdateDownloader
后台下载更新
backgroundDownload() - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
后台下载
backgroundDownload() - Method in class com.xuexiang.xupdate.UpdateManager
后台下载
BaseDialog - Class in com.xuexiang.xupdate.widget
基类Dialog 触摸Dialog屏幕以外的区域,dialog消失同时隐藏键盘
BaseDialog(Context, int) - Constructor for class com.xuexiang.xupdate.widget.BaseDialog
 
BaseDialog(Context, View) - Constructor for class com.xuexiang.xupdate.widget.BaseDialog
 
BaseDialog(Context) - Constructor for class com.xuexiang.xupdate.widget.BaseDialog
 
BaseDialog(Context, int, int) - Constructor for class com.xuexiang.xupdate.widget.BaseDialog
 
BaseDialog(Context, int, View) - Constructor for class com.xuexiang.xupdate.widget.BaseDialog
 
bindService(ServiceConnection) - Static method in class com.xuexiang.xupdate.service.DownloadService
绑定服务
build() - Method in class com.xuexiang.xupdate.UpdateManager.Builder
构建版本更新管理者

C

cancelDownload() - Method in class com.xuexiang.xupdate.proxy.impl.DefaultPrompterProxyImpl
 
cancelDownload() - Method in class com.xuexiang.xupdate.proxy.impl.DefaultUpdateDownloader
 
cancelDownload() - Method in interface com.xuexiang.xupdate.proxy.IPrompterProxy
取消下载
cancelDownload() - Method in interface com.xuexiang.xupdate.proxy.IUpdateDownloader
取消下载
cancelDownload(String) - Method in interface com.xuexiang.xupdate.proxy.IUpdateHttpService
取消文件下载
cancelDownload() - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
取消下载
cancelDownload() - Method in class com.xuexiang.xupdate.UpdateManager
 
CHECK_APK_CACHE_DIR_EMPTY - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
 
CHECK_IGNORED_VERSION - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
 
CHECK_JSON_EMPTY - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
 
CHECK_NET_REQUEST - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
查询更新失败
CHECK_NO_NETWORK - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
 
CHECK_NO_NEW_VERSION - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
 
CHECK_NO_WIFI - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
 
CHECK_PARSE - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
 
CHECK_UPDATING - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
 
checkApkFile(DownloadEntity, File) - Method in class com.xuexiang.xupdate.listener.impl.DefaultInstallListener
检验apk文件的有效性(默认是使用MD5进行校验,可重写该方法)
checkNetwork(Context) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
检查当前是否有网
checkVersion(boolean, String, Map<String, Object>, IUpdateProxy) - Method in class com.xuexiang.xupdate.proxy.impl.DefaultUpdateChecker
 
checkVersion(boolean, String, Map<String, Object>, IUpdateProxy) - Method in interface com.xuexiang.xupdate.proxy.IUpdateChecker
检查应用的版本信息
checkVersion() - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
执行网络请求,检查应用的版本信息
checkVersion() - Method in class com.xuexiang.xupdate.UpdateManager
执行网络请求,检查应用的版本信息
CheckVersionResult - Class in com.xuexiang.xupdate.entity
版本更新检查返回的结果 0:无版本更新 1:有版本更新,不需要强制升级 2:有版本更新,需要强制升级
CheckVersionResult() - Constructor for class com.xuexiang.xupdate.entity.CheckVersionResult
 
checkWifi(Context) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
检测当前网络是否是wifi
closeIOQuietly(Closeable...) - Static method in class com.xuexiang.xupdate.utils.FileUtils
安静关闭 IO
colorDeep(int) - Static method in class com.xuexiang.xupdate.utils.ColorUtils
加深颜色
ColorUtils - Class in com.xuexiang.xupdate.utils
颜色工具类
ColorUtils.RandomColor - Class in com.xuexiang.xupdate.utils
随机颜色
com.xuexiang.xupdate - package com.xuexiang.xupdate
 
com.xuexiang.xupdate.entity - package com.xuexiang.xupdate.entity
 
com.xuexiang.xupdate.listener - package com.xuexiang.xupdate.listener
 
com.xuexiang.xupdate.listener.impl - package com.xuexiang.xupdate.listener.impl
 
com.xuexiang.xupdate.logs - package com.xuexiang.xupdate.logs
 
com.xuexiang.xupdate.proxy - package com.xuexiang.xupdate.proxy
 
com.xuexiang.xupdate.proxy.impl - package com.xuexiang.xupdate.proxy.impl
 
com.xuexiang.xupdate.service - package com.xuexiang.xupdate.service
 
com.xuexiang.xupdate.utils - package com.xuexiang.xupdate.utils
 
com.xuexiang.xupdate.widget - package com.xuexiang.xupdate.widget
 
compareVersionName(String, String) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
比较两个版本号
CREATOR - Static variable in class com.xuexiang.xupdate.entity.DownloadEntity
 
CREATOR - Static variable in class com.xuexiang.xupdate.entity.PromptEntity
 
CREATOR - Static variable in class com.xuexiang.xupdate.entity.UpdateEntity
 

D

d(String) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印调试信息
debug(boolean) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
设置是否打开调试
debug(String) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
设置调试模式
debug(boolean) - Method in class com.xuexiang.xupdate.XUpdate
设置是否是debug模式
DEFAULT_LOG_TAG - Static variable in class com.xuexiang.xupdate.logs.UpdateLog
默认tag
DefaultFileEncryptor - Class in com.xuexiang.xupdate.proxy.impl
默认的文件加密计算使用的是MD5加密
DefaultFileEncryptor() - Constructor for class com.xuexiang.xupdate.proxy.impl.DefaultFileEncryptor
 
DefaultInstallListener - Class in com.xuexiang.xupdate.listener.impl
默认的apk安装监听【自定义安装监听可继承该类,并重写相应的方法】
DefaultInstallListener() - Constructor for class com.xuexiang.xupdate.listener.impl.DefaultInstallListener
 
DefaultPrompterProxyImpl - Class in com.xuexiang.xupdate.proxy.impl
默认版本更新提示器代理
DefaultPrompterProxyImpl(IUpdateProxy) - Constructor for class com.xuexiang.xupdate.proxy.impl.DefaultPrompterProxyImpl
 
DefaultUpdateChecker - Class in com.xuexiang.xupdate.proxy.impl
默认版本更新检查者
DefaultUpdateChecker() - Constructor for class com.xuexiang.xupdate.proxy.impl.DefaultUpdateChecker
 
DefaultUpdateDownloader - Class in com.xuexiang.xupdate.proxy.impl
默认版本更新下载器
DefaultUpdateDownloader() - Constructor for class com.xuexiang.xupdate.proxy.impl.DefaultUpdateDownloader
 
DefaultUpdateFailureListener - Class in com.xuexiang.xupdate.listener.impl
默认的更新出错的处理(简单地打印日志)
DefaultUpdateFailureListener() - Constructor for class com.xuexiang.xupdate.listener.impl.DefaultUpdateFailureListener
 
DefaultUpdateParser - Class in com.xuexiang.xupdate.proxy.impl
默认版本更新解析器
DefaultUpdateParser() - Constructor for class com.xuexiang.xupdate.proxy.impl.DefaultUpdateParser
 
DefaultUpdatePrompter - Class in com.xuexiang.xupdate.proxy.impl
默认的更新提示器
DefaultUpdatePrompter() - Constructor for class com.xuexiang.xupdate.proxy.impl.DefaultUpdatePrompter
使用默认Dialog
DefaultUpdatePrompter(FragmentManager) - Constructor for class com.xuexiang.xupdate.proxy.impl.DefaultUpdatePrompter
使用FragmentDialog
describeContents() - Method in class com.xuexiang.xupdate.entity.DownloadEntity
 
describeContents() - Method in class com.xuexiang.xupdate.entity.PromptEntity
 
describeContents() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
dip2px(int, Context) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
 
dismiss() - Method in class com.xuexiang.xupdate.widget.UpdateDialog
 
download(String, String, String, IUpdateHttpService.DownloadCallback) - Method in interface com.xuexiang.xupdate.proxy.IUpdateHttpService
文件下载
download(String, OnFileDownloadListener) - Method in class com.xuexiang.xupdate.UpdateManager
为外部提供简单的下载功能
DOWNLOAD_FAILED - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
 
DOWNLOAD_PERMISSION_DENIED - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
 
DownloadBinder() - Constructor for class com.xuexiang.xupdate.service.DownloadService.DownloadBinder
 
DownloadEntity - Class in com.xuexiang.xupdate.entity
下载信息实体
DownloadEntity() - Constructor for class com.xuexiang.xupdate.entity.DownloadEntity
 
DownloadEntity(Parcel) - Constructor for class com.xuexiang.xupdate.entity.DownloadEntity
 
DownloadService - Class in com.xuexiang.xupdate.service
APK下载服务
DownloadService() - Constructor for class com.xuexiang.xupdate.service.DownloadService
 
DownloadService.DownloadBinder - Class in com.xuexiang.xupdate.service
DownloadBinder中定义了一些实用的方法
dp2px(float) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
drawable2Bitmap(Drawable) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
Drawable to bitmap.
DrawableUtils - Class in com.xuexiang.xupdate.utils
Drawable工具类
dTag(String, String) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印调试信息

E

e(String) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印出错信息
e(Throwable) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印出错堆栈信息
e(String, Throwable) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印出错堆栈信息
encryptFile(File) - Static method in class com.xuexiang.xupdate._XUpdate
加密文件
encryptFile(File) - Method in interface com.xuexiang.xupdate.proxy.IFileEncryptor
加密文件
encryptFile(File) - Method in class com.xuexiang.xupdate.proxy.impl.DefaultFileEncryptor
加密文件
ERROR() - Constructor for class com.xuexiang.xupdate.entity.UpdateError.ERROR
 
eTag(String, String) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印出错信息
eTag(String, Throwable) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印出错堆栈信息
eTag(String, String, Throwable) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印出错堆栈信息

F

FileUtils - Class in com.xuexiang.xupdate.utils
文件操作工具类
findNewVersion(UpdateEntity, IUpdateProxy) - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
发现新版本
findNewVersion(UpdateEntity, IUpdateProxy) - Method in class com.xuexiang.xupdate.UpdateManager
发现新版本
findViewById(int) - Method in class com.xuexiang.xupdate.widget.BaseDialog
 
fromJson(String, Class<T>) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
把 JSON 字符串 转换为 单个指定类型的对象

G

get() - Static method in class com.xuexiang.xupdate.XUpdate
获取版本更新的入口
getAlpha() - Method in class com.xuexiang.xupdate.utils.ColorUtils.RandomColor
 
getApkCacheDir() - Static method in class com.xuexiang.xupdate._XUpdate
 
getApkCacheDir() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
getApkFileByUpdateEntity(UpdateEntity) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
根据更新信息获取apk安装文件
getApkMd5() - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
getApkNameByDownloadUrl(String) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
根据下载地址获取文件名
getApkSize() - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
getAppIcon(Context) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
 
getAppName(Context) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
 
getCacheDir() - Method in class com.xuexiang.xupdate.entity.DownloadEntity
 
getCode() - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
getCode() - Method in class com.xuexiang.xupdate.entity.UpdateError
 
getColor(Context, int) - Static method in class com.xuexiang.xupdate.utils.ColorUtils
获取Color值
getColor() - Method in class com.xuexiang.xupdate.utils.ColorUtils.RandomColor
 
getColorStateList(int, int) - Static method in class com.xuexiang.xupdate.utils.ColorUtils
颜色选择器
getContext() - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
获取上下文
getContext() - Method in class com.xuexiang.xupdate.UpdateManager
 
getContext() - Static method in class com.xuexiang.xupdate.XUpdate
 
getDefaultDiskCacheDir() - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
 
getDefaultDiskCacheDirPath() - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
 
getDetailMsg() - Method in class com.xuexiang.xupdate.entity.UpdateError
获取详细的错误信息
getDiskCacheDir(Context, String) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
获取应用的缓存目录
getDisplayUpdateInfo(Context, UpdateEntity) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
获取版本更新展示信息
getDownloadContentUri(Context, File) - Static method in class com.xuexiang.xupdate.utils.FileUtils
 
getDownLoadEntity() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
getDownloadUrl() - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
getDownloadUrl() - Method in class com.xuexiang.xupdate.entity.DownloadEntity
 
getDownloadUrl() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
getDrawable(int, int, int) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
实体 状态选择器
getDrawable(int, int) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
实体 按下的颜色加深
getDrawable(int) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
实体 得到随机色 状态选择器
getDrawable() - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
实体 得到随机色 状态选择器 默认10px
getDrawable(int) - Method in class com.xuexiang.xupdate.widget.BaseDialog
 
getExtDCIMPath() - Static method in class com.xuexiang.xupdate.utils.FileUtils
获取相机拍摄的照片和视频的目录
getExtDownloadsPath() - Static method in class com.xuexiang.xupdate.utils.FileUtils
获取下载目录
getExtPicturesPath() - Static method in class com.xuexiang.xupdate.utils.FileUtils
获取图片目录
getExtStoragePath() - Static method in class com.xuexiang.xupdate.utils.FileUtils
获取 Android 外置储存的根目录
getFileByPath(String) - Static method in class com.xuexiang.xupdate.utils.FileUtils
根据文件路径获取文件
getFileInputStream(File) - Static method in class com.xuexiang.xupdate.utils.FileUtils
获取文件输入流
getFileMD5(File) - Static method in class com.xuexiang.xupdate.utils.Md5Utils
获取文件的MD5值
getHeightRatio() - Method in class com.xuexiang.xupdate.entity.PromptEntity
 
getInstallAppIntent(File) - Static method in class com.xuexiang.xupdate.utils.ApkInstallUtils
获取安装apk的意图
getInstallLocation() - Static method in class com.xuexiang.xupdate.utils.ApkInstallUtils
get system install location
can be set by System Menu Setting->Storage->Prefered install location
getIUpdateChecker() - Static method in class com.xuexiang.xupdate._XUpdate
 
getIUpdateDownLoader() - Static method in class com.xuexiang.xupdate._XUpdate
 
getIUpdateHttpService() - Static method in class com.xuexiang.xupdate._XUpdate
 
getIUpdateHttpService() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
getIUpdateHttpService() - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
获取版本更新网络请求服务API
getIUpdateHttpService() - Method in class com.xuexiang.xupdate.UpdateManager
 
getIUpdateParser() - Static method in class com.xuexiang.xupdate._XUpdate
 
getMax() - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
getMd5() - Method in class com.xuexiang.xupdate.entity.DownloadEntity
 
getMd5() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
getMediaContentUri(Context, File) - Static method in class com.xuexiang.xupdate.utils.FileUtils
将媒体文件转化为资源定位符
getModifyContent() - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
getMsg() - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
getOnInstallListener() - Static method in class com.xuexiang.xupdate._XUpdate
 
getOnUpdateFailureListener() - Static method in class com.xuexiang.xupdate._XUpdate
 
getParams() - Static method in class com.xuexiang.xupdate._XUpdate
 
getPrefix() - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
getProgress() - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
getProgressTextSize() - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
Get progress text size.
getProgressTextVisibility() - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
getRandomColor(int, int, int) - Static method in class com.xuexiang.xupdate.utils.ColorUtils
按条件的到随机颜色
getRandomColor() - Static method in class com.xuexiang.xupdate.utils.ColorUtils
 
getRandomColorDrawable(int) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
实心 得到 随机背景色并且带选择器, 并且可以设置圆角
getRandomColorDrawable() - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
实心 得到随机背景色并且带选择器, 并且可以设置圆角
getReachedBarColor() - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
getReachedBarHeight() - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
getSize() - Method in class com.xuexiang.xupdate.entity.DownloadEntity
 
getSize() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
getSolidRectDrawable(int, int) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
得到实心的drawable, 一般作为选中,点中的效果
getSolidStrokeDrawable(int, int, int, int) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
得到 正常空心, 按下实体的状态选择器
getStateListDrawable(Drawable, Drawable) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
背景选择器
getString(int) - Method in class com.xuexiang.xupdate.widget.BaseDialog
 
getStrokeRandomColorDrawable() - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
空心,按下实心 得到随机背景色并且带选择器, 并且可以设置圆角
getStrokeRectDrawable(int, int, int, int) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
得到空心的效果,一般作为默认的效果
getStrokeSolidDrawable(int, int, int, int) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
得到 正常空心, 按下实体的状态选择器
getSuffix() - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
getSuggestedMinimumHeight() - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
getSuggestedMinimumWidth() - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
getTextColor() - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
Get progress text color.
getThemeColor() - Method in class com.xuexiang.xupdate.entity.PromptEntity
 
getTopResId() - Method in class com.xuexiang.xupdate.entity.PromptEntity
 
getUnreachedBarColor() - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
getUnreachedBarHeight() - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
getUpdateContent() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
getUpdateStatus() - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
getUploadTime() - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
getUriByFile(File) - Static method in class com.xuexiang.xupdate.utils.FileUtils
根据文件获取uri
getUriForFile(File) - Static method in class com.xuexiang.xupdate.utils.FileUtils
Return a content URI for a given file.
getVersionCode() - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
getVersionCode() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
getVersionCode(Context) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
获取应用的VersionCode
getVersionName() - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
getVersionName() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
getVersionName(Context) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
获取应用的VersionName
getWidthRatio() - Method in class com.xuexiang.xupdate.entity.PromptEntity
 

H

HAVE_NEW_VERSION - Static variable in class com.xuexiang.xupdate.entity.CheckVersionResult
有版本更新,不需要强制升级
HAVE_NEW_VERSION_FORCED_UPLOAD - Static variable in class com.xuexiang.xupdate.entity.CheckVersionResult
有版本更新,需要强制升级

I

i(String) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印提示性的信息
IFileEncryptor - Interface in com.xuexiang.xupdate.proxy
文件加密器,用于文件有效性校验
ILogger - Interface in com.xuexiang.xupdate.logs
简易的日志接口
incrementProgressBy(int) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
init(Context) - Static method in class com.xuexiang.xupdate.entity.UpdateError
初始化错误信息
init(Application) - Method in class com.xuexiang.xupdate.XUpdate
初始化
initListeners() - Method in class com.xuexiang.xupdate.widget.BaseDialog
初始化监听器
initListeners() - Method in class com.xuexiang.xupdate.widget.UpdateDialog
 
initViews() - Method in class com.xuexiang.xupdate.widget.BaseDialog
初始化控件
initViews() - Method in class com.xuexiang.xupdate.widget.UpdateDialog
 
install(Context, File) - Static method in class com.xuexiang.xupdate.utils.ApkInstallUtils
自适应apk安装(如果设备有root权限就自动静默安装)
install(Context, String) - Static method in class com.xuexiang.xupdate.utils.ApkInstallUtils
自适应apk安装(如果设备有root权限就自动静默安装)
INSTALL_FAILED - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
apk安装错误
installApkFile(Context, File) - Method in class com.xuexiang.xupdate.listener.impl.DefaultInstallListener
安装apk文件【此处可自定义apk的安装方法,可重写该方法】
installAppSilent(Context, String) - Static method in class com.xuexiang.xupdate.utils.ApkInstallUtils
静默安装 App
IPrompterProxy - Interface in com.xuexiang.xupdate.proxy
版本更新提示器代理
isApkDownloaded(UpdateEntity) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
判断更新的安装包是否已下载完成【比较md5值】
isApkFileValid(File) - Method in class com.xuexiang.xupdate.entity.DownloadEntity
验证文件是否有效【没设置mMd5默认不校验,直接有效】
isAppOnForeground(Context) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
应用是否在前台
isAsyncParser() - Method in class com.xuexiang.xupdate.proxy.impl.AbstractUpdateParser
 
isAsyncParser() - Method in interface com.xuexiang.xupdate.proxy.IUpdateParser
 
isAsyncParser() - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
 
isAsyncParser() - Method in class com.xuexiang.xupdate.UpdateManager
 
isAutoInstall() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
isAutoMode() - Static method in class com.xuexiang.xupdate._XUpdate
 
isAutoMode(boolean) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
是否是自动版本更新模式【无人干预,有版本更新直接下载、安装,需要root权限】
isAutoMode(boolean) - Method in class com.xuexiang.xupdate.XUpdate
是否是自动版本更新模式【无人干预,有版本更新直接下载、安装】
isColorDark(int) - Static method in class com.xuexiang.xupdate.utils.ColorUtils
是否是深色的颜色
isFileExists(File) - Static method in class com.xuexiang.xupdate.utils.FileUtils
判断文件是否存在
isFileExists(String) - Static method in class com.xuexiang.xupdate.utils.FileUtils
判断文件是否存在
isFileValid(String, File) - Static method in class com.xuexiang.xupdate._XUpdate
验证文件是否有效(加密是否一致)
isFileValid(String, File) - Method in interface com.xuexiang.xupdate.proxy.IFileEncryptor
检验文件是否有效(加密是否一致)
isFileValid(String, File) - Method in class com.xuexiang.xupdate.proxy.impl.DefaultFileEncryptor
检验文件是否有效(加密是否一致)
isForce() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
isGet() - Static method in class com.xuexiang.xupdate._XUpdate
 
isGet(boolean) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
是否使用Get请求
isGet(boolean) - Method in class com.xuexiang.xupdate.XUpdate
是否使用的是Get请求
isHasUpdate() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
isIgnorable() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
isIgnoreVersion(Context, String) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
是否是忽略版本
isPrivateApkCacheDir(UpdateEntity) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
ApkCacheDir是否是私有目录
isPrivatePath(Context, String) - Static method in class com.xuexiang.xupdate.utils.FileUtils
是否是私有目录
isPublicPath(File) - Static method in class com.xuexiang.xupdate.utils.FileUtils
是否是公有目录
isPublicPath(String) - Static method in class com.xuexiang.xupdate.utils.FileUtils
是否是公有目录
isRunning() - Static method in class com.xuexiang.xupdate.service.DownloadService
下载服务是否在运行
isScopedStorageMode() - Static method in class com.xuexiang.xupdate.utils.FileUtils
是否是分区存储模式:在公共目录下file的api无效了
isShowNotification() - Method in class com.xuexiang.xupdate.entity.DownloadEntity
 
isShowUpdatePrompter() - Static method in class com.xuexiang.xupdate._XUpdate
 
isSilent() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
isSupportBackgroundUpdate() - Method in class com.xuexiang.xupdate.entity.PromptEntity
 
isSupportSilentInstall() - Static method in class com.xuexiang.xupdate.utils.ApkInstallUtils
 
isWifiOnly() - Static method in class com.xuexiang.xupdate._XUpdate
 
isWifiOnly(boolean) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
是否只在wifi下进行版本更新检查
isWifiOnly(boolean) - Method in class com.xuexiang.xupdate.XUpdate
设置是否只在wifi下进行版本更新检查
iTag(String, String) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印提示性的信息
IUpdateChecker - Interface in com.xuexiang.xupdate.proxy
版本更新检查器
IUpdateDownloader - Interface in com.xuexiang.xupdate.proxy
版本更新下载器
IUpdateHttpService - Interface in com.xuexiang.xupdate.proxy
版本更新网络请求服务API
IUpdateHttpService.Callback - Interface in com.xuexiang.xupdate.proxy
网络请求回调
IUpdateHttpService.DownloadCallback - Interface in com.xuexiang.xupdate.proxy
下载回调
IUpdateParseCallback - Interface in com.xuexiang.xupdate.listener
异步解析的回调
IUpdateParser - Interface in com.xuexiang.xupdate.proxy
版本更新解析器[异步解析和同步解析方法只需要实现一个就行了,当isAsyncParser为true时需要实现异步解析方法,否则实现同步解析方法]
IUpdatePrompter - Interface in com.xuexiang.xupdate.proxy
版本更新提示器
IUpdateProxy - Interface in com.xuexiang.xupdate.proxy
版本更新代理

K

KEY_UPDATE_ENTITY - Static variable in class com.xuexiang.xupdate.widget.UpdateDialogFragment
 
KEY_UPDATE_PROMPT_ENTITY - Static variable in class com.xuexiang.xupdate.widget.UpdateDialogFragment
 

L

log(int, String, String, Throwable) - Method in interface com.xuexiang.xupdate.logs.ILogger
打印信息
log(int, String, String, Throwable) - Method in class com.xuexiang.xupdate.logs.LogcatLogger
打印信息
log(int, String, String) - Method in class com.xuexiang.xupdate.logs.LogcatLogger
使用LogCat输出日志,字符长度超过4000则自动换行.
LogcatLogger - Class in com.xuexiang.xupdate.logs
默认Logcat日志记录
LogcatLogger() - Constructor for class com.xuexiang.xupdate.logs.LogcatLogger
 

M

Md5Utils - Class in com.xuexiang.xupdate.utils
MD5加密工具类
MODE_READ_ONLY - Static variable in class com.xuexiang.xupdate.utils.FileUtils
只读模式

N

newBuild(Context) - Static method in class com.xuexiang.xupdate.XUpdate
获取版本更新构建者
newBuild(Context, String) - Static method in class com.xuexiang.xupdate.XUpdate
获取版本更新构建者
newInstance(Context, UpdateEntity, IPrompterProxy, PromptEntity) - Static method in class com.xuexiang.xupdate.widget.UpdateDialog
获取更新提示
NO_NEW_VERSION - Static variable in class com.xuexiang.xupdate.entity.CheckVersionResult
无版本更新
noNewVersion(Throwable) - Method in class com.xuexiang.xupdate.proxy.impl.AbstractUpdateProxy
 
noNewVersion(Throwable) - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
未发现新版本
noNewVersion(Throwable) - Method in class com.xuexiang.xupdate.UpdateManager
未发现新版本
NumberProgressBar - Class in com.xuexiang.xupdate.widget
数字进度条
NumberProgressBar(Context) - Constructor for class com.xuexiang.xupdate.widget.NumberProgressBar
 
NumberProgressBar(Context, AttributeSet) - Constructor for class com.xuexiang.xupdate.widget.NumberProgressBar
 
NumberProgressBar(Context, AttributeSet, int) - Constructor for class com.xuexiang.xupdate.widget.NumberProgressBar
 
NumberProgressBar.OnProgressBarListener - Interface in com.xuexiang.xupdate.widget
 
NumberProgressBar.ProgressTextVisibility - Enum in com.xuexiang.xupdate.widget
 

O

onAfterCheck() - Method in class com.xuexiang.xupdate.proxy.impl.AbstractUpdateProxy
 
onAfterCheck() - Method in class com.xuexiang.xupdate.proxy.impl.DefaultUpdateChecker
 
onAfterCheck() - Method in interface com.xuexiang.xupdate.proxy.IUpdateChecker
版本检查之后
onAfterCheck() - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
版本检查之后
onAfterCheck() - Method in class com.xuexiang.xupdate.UpdateManager
版本检查之后
onAttachedToWindow() - Method in class com.xuexiang.xupdate.widget.UpdateDialog
 
onBeforeCheck() - Method in class com.xuexiang.xupdate.proxy.impl.AbstractUpdateProxy
 
onBeforeCheck() - Method in class com.xuexiang.xupdate.proxy.impl.DefaultUpdateChecker
 
onBeforeCheck() - Method in interface com.xuexiang.xupdate.proxy.IUpdateChecker
版本检查之前
onBeforeCheck() - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
版本检查之前
onBeforeCheck() - Method in class com.xuexiang.xupdate.UpdateManager
版本检查之前
onBind(Intent) - Method in class com.xuexiang.xupdate.service.DownloadService
 
onClick(View) - Method in class com.xuexiang.xupdate.widget.UpdateDialog
 
onClick(View) - Method in class com.xuexiang.xupdate.widget.UpdateDialogActivity
 
onClick(View) - Method in class com.xuexiang.xupdate.widget.UpdateDialogFragment
 
onCompleted(File) - Method in interface com.xuexiang.xupdate.service.OnFileDownloadListener
下载完毕
onCreate() - Method in class com.xuexiang.xupdate.service.DownloadService
 
onCreate(Bundle) - Method in class com.xuexiang.xupdate.widget.UpdateDialogActivity
 
onCreate(Bundle) - Method in class com.xuexiang.xupdate.widget.UpdateDialogFragment
 
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.xuexiang.xupdate.widget.UpdateDialogFragment
 
onDestroy() - Method in class com.xuexiang.xupdate.service.DownloadService
 
onDestroyView() - Method in class com.xuexiang.xupdate.widget.UpdateDialogFragment
 
onDetachedFromWindow() - Method in class com.xuexiang.xupdate.widget.UpdateDialog
 
onDraw(Canvas) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
onError(Throwable) - Method in interface com.xuexiang.xupdate.proxy.IUpdateHttpService.Callback
错误回调
onError(Throwable) - Method in interface com.xuexiang.xupdate.proxy.IUpdateHttpService.DownloadCallback
错误回调
onError(Throwable) - Method in interface com.xuexiang.xupdate.service.OnFileDownloadListener
错误回调
onFailure(UpdateError) - Method in class com.xuexiang.xupdate.listener.impl.DefaultUpdateFailureListener
 
onFailure(UpdateError) - Method in interface com.xuexiang.xupdate.listener.OnUpdateFailureListener
更新失败
OnFileDownloadListener - Interface in com.xuexiang.xupdate.service
下载服务下载监听
onInstallApk(Context, File, DownloadEntity) - Method in class com.xuexiang.xupdate.listener.impl.DefaultInstallListener
 
onInstallApk(Context, File, DownloadEntity) - Method in interface com.xuexiang.xupdate.listener.OnInstallListener
开始安装apk的监听
onInstallApkSuccess() - Method in class com.xuexiang.xupdate.listener.impl.DefaultInstallListener
 
onInstallApkSuccess() - Method in interface com.xuexiang.xupdate.listener.OnInstallListener
apk安装完毕
OnInstallListener - Interface in com.xuexiang.xupdate.listener
安装监听
onKeyDown(int, KeyEvent) - Method in class com.xuexiang.xupdate.widget.UpdateDialogActivity
 
onMeasure(int, int) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
onParseResult(UpdateEntity) - Method in interface com.xuexiang.xupdate.listener.IUpdateParseCallback
解析结果
onProgress(float, long) - Method in interface com.xuexiang.xupdate.proxy.IUpdateHttpService.DownloadCallback
更新进度
onProgress(float, long) - Method in interface com.xuexiang.xupdate.service.OnFileDownloadListener
更新进度
onProgressChange(int, int) - Method in interface com.xuexiang.xupdate.widget.NumberProgressBar.OnProgressBarListener
进度变化
onRequestPermissionsResult(int, String[], int[]) - Method in class com.xuexiang.xupdate.widget.UpdateDialogActivity
 
onRequestPermissionsResult(int, String[], int[]) - Method in class com.xuexiang.xupdate.widget.UpdateDialogFragment
 
onRestoreInstanceState(Parcelable) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
onSaveInstanceState() - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
onStart() - Method in interface com.xuexiang.xupdate.proxy.IUpdateHttpService.DownloadCallback
下载之前
onStart() - Method in interface com.xuexiang.xupdate.service.OnFileDownloadListener
下载之前
onStart() - Method in class com.xuexiang.xupdate.widget.UpdateDialogActivity
 
onStart() - Method in class com.xuexiang.xupdate.widget.UpdateDialogFragment
 
onStop() - Method in class com.xuexiang.xupdate.widget.UpdateDialogActivity
 
onSuccess(String) - Method in interface com.xuexiang.xupdate.proxy.IUpdateHttpService.Callback
结果回调
onSuccess(File) - Method in interface com.xuexiang.xupdate.proxy.IUpdateHttpService.DownloadCallback
结果回调
onTouchEvent(MotionEvent) - Method in class com.xuexiang.xupdate.widget.BaseDialog
 
onUnbind(Intent) - Method in class com.xuexiang.xupdate.service.DownloadService
 
onUpdateError(int) - Static method in class com.xuexiang.xupdate._XUpdate
更新出现错误
onUpdateError(int, String) - Static method in class com.xuexiang.xupdate._XUpdate
更新出现错误
onUpdateError(UpdateError) - Static method in class com.xuexiang.xupdate._XUpdate
更新出现错误
OnUpdateFailureListener - Interface in com.xuexiang.xupdate.listener
更新失败监听
onViewCreated(View, Bundle) - Method in class com.xuexiang.xupdate.widget.UpdateDialogFragment
 
openAssetFileDescriptor(Uri) - Static method in class com.xuexiang.xupdate.utils.FileUtils
从uri资源符中读取文件描述

P

param(String, Object) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设置请求参数
param(String, Object) - Method in class com.xuexiang.xupdate.XUpdate
设置全局的apk更新请求参数
params(Map<String, Object>) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设置请求参数
params(Map<String, Object>) - Method in class com.xuexiang.xupdate.XUpdate
设置全局的apk更新请求参数
parseJson(String, IUpdateParseCallback) - Method in class com.xuexiang.xupdate.proxy.impl.AbstractUpdateParser
 
parseJson(String) - Method in class com.xuexiang.xupdate.proxy.impl.DefaultUpdateParser
 
parseJson(String) - Method in interface com.xuexiang.xupdate.proxy.IUpdateParser
[同步解析方法]
parseJson(String, IUpdateParseCallback) - Method in interface com.xuexiang.xupdate.proxy.IUpdateParser
[异步解析方法]
parseJson(String) - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
将请求的json结果解析为版本更新信息实体【同步方法】
parseJson(String, IUpdateParseCallback) - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
将请求的json结果解析为版本更新信息实体【异步方法】
parseJson(String) - Method in class com.xuexiang.xupdate.UpdateManager
将请求的json结果解析为版本更新信息实体
parseJson(String, IUpdateParseCallback) - Method in class com.xuexiang.xupdate.UpdateManager
 
processCheckResult(String, IUpdateProxy) - Method in class com.xuexiang.xupdate.proxy.impl.DefaultUpdateChecker
 
processCheckResult(String, IUpdateProxy) - Method in interface com.xuexiang.xupdate.proxy.IUpdateChecker
处理版本检查的结果
processUpdateEntity(UpdateEntity, String, IUpdateProxy) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
处理解析获取到的最新版本更新信息【版本处理的核心】
PROMPT_ACTIVITY_DESTROY - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
 
PROMPT_UNKNOWN - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
 
PromptEntity - Class in com.xuexiang.xupdate.entity
版本更新提示器参数信息
PromptEntity() - Constructor for class com.xuexiang.xupdate.entity.PromptEntity
 
PromptEntity(Parcel) - Constructor for class com.xuexiang.xupdate.entity.PromptEntity
 
promptHeightRatio(float) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设置版本更新提示器高度占屏幕的比例,默认是-1,不做约束
promptThemeColor(int) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设置主题颜色
promptTopResId(int) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设置顶部背景图片
promptWidthRatio(float) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设置版本更新提示器宽度占屏幕的比例,默认是-1,不做约束

R

recycle() - Method in class com.xuexiang.xupdate.proxy.impl.DefaultPrompterProxyImpl
 
recycle() - Method in interface com.xuexiang.xupdate.proxy.IPrompterProxy
资源回收
recycle() - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
资源回收
recycle() - Method in class com.xuexiang.xupdate.UpdateManager
 
REQUEST_CODE_INSTALL_APP - Static variable in class com.xuexiang.xupdate.utils.ApkInstallUtils
apk安装的请求码
REQUEST_CODE_REQUEST_PERMISSIONS - Static variable in class com.xuexiang.xupdate.widget.UpdateDialogFragment
 
requireNonNull(T, String) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
不能为null

S

saveIgnoreVersion(Context, String) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
保存忽略的版本信息
setAlpha(int) - Method in class com.xuexiang.xupdate.utils.ColorUtils.RandomColor
 
setApkCacheDir(String) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
设置apk的缓存地址,只支持设置一次
setApkCacheDir(String) - Method in class com.xuexiang.xupdate.XUpdate
设置apk的缓存路径
setApkMd5(String) - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
setApkSize(long) - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
setCacheDir(String) - Method in class com.xuexiang.xupdate.entity.DownloadEntity
 
setCode(int) - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
setDebug(boolean) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
设置是否是调试模式
setDialogSize(int, int) - Method in class com.xuexiang.xupdate.widget.BaseDialog
设置弹窗的宽和高
setDownLoadEntity(DownloadEntity) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
setDownloadUrl(String) - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
setDownloadUrl(String) - Method in class com.xuexiang.xupdate.entity.DownloadEntity
 
setDownloadUrl(String) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
setForce(boolean) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
setHasUpdate(boolean) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
setHeightRatio(float) - Method in class com.xuexiang.xupdate.entity.PromptEntity
 
setIFileEncryptor(IFileEncryptor) - Method in class com.xuexiang.xupdate.XUpdate
设置文件加密器
setILogger(ILogger) - Method in class com.xuexiang.xupdate.XUpdate
设置日志打印接口
setIPrompterProxy(IPrompterProxy) - Method in class com.xuexiang.xupdate.widget.UpdateDialog
 
setIsAutoInstall(boolean) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
setIsAutoMode(boolean) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
设置是否是自动模式【自动静默下载,自动安装】
setIsIgnorable(boolean) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
setIsShowUpdatePrompter(boolean) - Static method in class com.xuexiang.xupdate._XUpdate
 
setIsSilent(boolean) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
setIUpdateChecker(IUpdateChecker) - Method in class com.xuexiang.xupdate.XUpdate
设置版本更新检查
setIUpdateDownLoader(IUpdateDownloader) - Method in class com.xuexiang.xupdate.XUpdate
设置版本更新下载器
setIUpdateHttpService(IUpdateHttpService) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
setIUpdateHttpService(IUpdateHttpService) - Method in class com.xuexiang.xupdate.XUpdate
设置版本更新网络请求服务API
setIUpdateParser(IUpdateParser) - Method in class com.xuexiang.xupdate.XUpdate
设置版本更新的解析器
setIUpdateProxy(IUpdateProxy) - Method in class com.xuexiang.xupdate.UpdateManager
设置版本更新的代理,可自定义版本更新
setLogger(ILogger) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
设置日志记录者的接口
setMax(int) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
setMd5(String) - Method in class com.xuexiang.xupdate.entity.DownloadEntity
 
setMd5(String) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
setModifyContent(String) - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
setMsg(String) - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
setOnFileDownloadListener(OnFileDownloadListener) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设置文件的下载监听
setOnInstallListener(OnInstallListener) - Method in class com.xuexiang.xupdate.XUpdate
设置安装监听
setOnProgressBarListener(NumberProgressBar.OnProgressBarListener) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
setOnUpdateFailureListener(OnUpdateFailureListener) - Method in class com.xuexiang.xupdate.XUpdate
设置更新出错的监听
setPrefix(String) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
setPriority(int) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
设置打印日志的等级(只打印改等级以上的日志)
setProgress(int) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
setProgressTextColor(int) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
setProgressTextSize(float) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
setProgressTextVisibility(NumberProgressBar.ProgressTextVisibility) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
setPromptEntity(PromptEntity) - Method in class com.xuexiang.xupdate.widget.UpdateDialog
 
setReachedBarColor(int) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
setReachedBarHeight(float) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
setRequireUpgrade(int) - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
setShowNotification(boolean) - Method in class com.xuexiang.xupdate.entity.DownloadEntity
 
setSize(long) - Method in class com.xuexiang.xupdate.entity.DownloadEntity
 
setSize(long) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
setSuffix(String) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
setSupportBackgroundUpdate(boolean) - Method in class com.xuexiang.xupdate.entity.PromptEntity
 
setSupportSilentInstall(boolean) - Static method in class com.xuexiang.xupdate.utils.ApkInstallUtils
设置是否支持静默安装
setTag(String) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
设置日志的tag
setTextSolidTheme(TextView, int, int, int) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
默认实心 设置TextView 主题,
setTextSolidTheme(TextView, int, int) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
默认实心 设置TextView 主题,随机颜色
setTextSolidTheme(TextView) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
默认实心 设置TextView 主题,随机颜色
setTextStrokeTheme(TextView, int, int, int) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
默认空心 设置TextView 主题,
setTextStrokeTheme(TextView, int, int) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
默认空心 设置TextView 主题,随机颜色
setTextStrokeTheme(TextView) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
默认空心 设置TextView 主题,随机颜色
setTextStrokeTheme(TextView, int) - Static method in class com.xuexiang.xupdate.utils.DrawableUtils
默认空心 设置TextView 主题,随机颜色
setThemeColor(int) - Method in class com.xuexiang.xupdate.entity.PromptEntity
 
setTopResId(int) - Method in class com.xuexiang.xupdate.entity.PromptEntity
 
setUnreachedBarColor(int) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
setUnreachedBarHeight(float) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
setUpdateContent(String) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
setUpdateEntity(UpdateEntity) - Method in class com.xuexiang.xupdate.widget.UpdateDialog
 
setUploadTime(String) - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
setVersionCode(int) - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
setVersionCode(int) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
setVersionName(String) - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
setVersionName(String) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
setWidthRatio(float) - Method in class com.xuexiang.xupdate.entity.PromptEntity
 
show() - Method in class com.xuexiang.xupdate.widget.UpdateDialog
 
show(Context, UpdateEntity, IPrompterProxy, PromptEntity) - Static method in class com.xuexiang.xupdate.widget.UpdateDialogActivity
显示更新提示
show(FragmentManager, UpdateEntity, IPrompterProxy, PromptEntity) - Static method in class com.xuexiang.xupdate.widget.UpdateDialogFragment
获取更新提示
show(FragmentManager, String) - Method in class com.xuexiang.xupdate.widget.UpdateDialogFragment
 
show(FragmentManager) - Method in class com.xuexiang.xupdate.widget.UpdateDialogFragment
显示更新提示
showNotification() - Method in class com.xuexiang.xupdate.service.DownloadService.DownloadBinder
显示通知
showPrompt(UpdateEntity, IUpdateProxy, PromptEntity) - Method in class com.xuexiang.xupdate.proxy.impl.DefaultUpdatePrompter
显示版本更新提示
showPrompt(UpdateEntity, IUpdateProxy, PromptEntity) - Method in interface com.xuexiang.xupdate.proxy.IUpdatePrompter
显示版本更新提示
sp2px(float) - Method in class com.xuexiang.xupdate.widget.NumberProgressBar
 
start(UpdateEntity, OnFileDownloadListener) - Method in class com.xuexiang.xupdate.service.DownloadService.DownloadBinder
开始下载
startDownload(UpdateEntity, OnFileDownloadListener) - Method in class com.xuexiang.xupdate.proxy.impl.DefaultPrompterProxyImpl
 
startDownload(UpdateEntity, OnFileDownloadListener) - Method in class com.xuexiang.xupdate.proxy.impl.DefaultUpdateDownloader
 
startDownload(UpdateEntity, OnFileDownloadListener) - Method in interface com.xuexiang.xupdate.proxy.IPrompterProxy
开始下载更新
startDownload(UpdateEntity, OnFileDownloadListener) - Method in interface com.xuexiang.xupdate.proxy.IUpdateDownloader
开始下载更新
startDownload(UpdateEntity, OnFileDownloadListener) - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
开始下载更新
startDownload(UpdateEntity, OnFileDownloadListener) - Method in class com.xuexiang.xupdate.UpdateManager
 
startInstallApk(Context, File) - Static method in class com.xuexiang.xupdate._XUpdate
开始安装apk文件
startInstallApk(Context, File, DownloadEntity) - Static method in class com.xuexiang.xupdate._XUpdate
开始安装apk文件
stop(String) - Method in class com.xuexiang.xupdate.service.DownloadService.DownloadBinder
停止下载服务
supportBackgroundUpdate(boolean) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设置是否支持后台更新
supportSilentInstall(boolean) - Method in class com.xuexiang.xupdate.XUpdate
设置是否支持静默安装

T

themeColor(int) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
Deprecated.
toJson(Object) - Static method in class com.xuexiang.xupdate.utils.UpdateUtils
把 单个指定类型的对象 转换为 JSON 字符串
topResId(int) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
Deprecated.
toString() - Method in class com.xuexiang.xupdate.entity.CheckVersionResult
 
toString() - Method in class com.xuexiang.xupdate.entity.DownloadEntity
 
toString() - Method in class com.xuexiang.xupdate.entity.PromptEntity
 
toString() - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
toString() - Method in class com.xuexiang.xupdate.entity.UpdateError
 
toString() - Method in class com.xuexiang.xupdate.UpdateManager
 

U

update() - Method in interface com.xuexiang.xupdate.proxy.IUpdateProxy
开始版本更新
update() - Method in class com.xuexiang.xupdate.UpdateManager.Builder
进行版本更新
update(IUpdateProxy) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
进行版本更新
update() - Method in class com.xuexiang.xupdate.UpdateManager
开始版本更新
update(UpdateEntity) - Method in class com.xuexiang.xupdate.UpdateManager
直接更新,不使用版本更新检查器
UPDATE_UNKNOWN - Static variable in class com.xuexiang.xupdate.entity.UpdateError.ERROR
未知的错误
updateChecker(IUpdateChecker) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设置版本更新检查器
UpdateDialog - Class in com.xuexiang.xupdate.widget
版本更新弹窗
UpdateDialogActivity - Class in com.xuexiang.xupdate.widget
版本更新提示器【AppCompatActivity实现】
UpdateDialogActivity() - Constructor for class com.xuexiang.xupdate.widget.UpdateDialogActivity
 
UpdateDialogFragment - Class in com.xuexiang.xupdate.widget
版本更新提示器【DialogFragment实现】
UpdateDialogFragment() - Constructor for class com.xuexiang.xupdate.widget.UpdateDialogFragment
 
updateDownLoader(IUpdateDownloader) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设备版本更新下载器
UpdateEntity - Class in com.xuexiang.xupdate.entity
版本更新信息实体
UpdateEntity() - Constructor for class com.xuexiang.xupdate.entity.UpdateEntity
 
UpdateEntity(Parcel) - Constructor for class com.xuexiang.xupdate.entity.UpdateEntity
 
UpdateError - Class in com.xuexiang.xupdate.entity
更新错误
UpdateError(int) - Constructor for class com.xuexiang.xupdate.entity.UpdateError
 
UpdateError(int, String) - Constructor for class com.xuexiang.xupdate.entity.UpdateError
 
UpdateError(Throwable) - Constructor for class com.xuexiang.xupdate.entity.UpdateError
 
UpdateError.ERROR - Class in com.xuexiang.xupdate.entity
版本更新错误码
UpdateFileProvider - Class in com.xuexiang.xupdate.utils
 
UpdateFileProvider() - Constructor for class com.xuexiang.xupdate.utils.UpdateFileProvider
 
updateHttpService(IUpdateHttpService) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设置网络请求的请求服务API
UpdateLog - Class in com.xuexiang.xupdate.logs
版本更新日志打印
UpdateManager - Class in com.xuexiang.xupdate
版本更新管理者
UpdateManager.Builder - Class in com.xuexiang.xupdate
版本更新管理构建者
updateParser(IUpdateParser) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设置版本更新的解析器
updatePrompter(IUpdatePrompter) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设置版本更新提示器
updateUrl(String) - Method in class com.xuexiang.xupdate.UpdateManager.Builder
设置版本更新检查的url
UpdateUtils - Class in com.xuexiang.xupdate.utils
更新工具类

V

v(String) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印任何(所有)信息
valueOf(String) - Static method in enum com.xuexiang.xupdate.widget.NumberProgressBar.ProgressTextVisibility
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.xuexiang.xupdate.widget.NumberProgressBar.ProgressTextVisibility
Returns an array containing the constants of this enum type, in the order they are declared.
vTag(String, String) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印任何(所有)信息

W

w(String) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印warning警告信息
writeToParcel(Parcel, int) - Method in class com.xuexiang.xupdate.entity.DownloadEntity
 
writeToParcel(Parcel, int) - Method in class com.xuexiang.xupdate.entity.PromptEntity
 
writeToParcel(Parcel, int) - Method in class com.xuexiang.xupdate.entity.UpdateEntity
 
wTag(String, String) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印warning警告信息
wtf(String) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印严重的错误信息
wtfTag(String, String) - Static method in class com.xuexiang.xupdate.logs.UpdateLog
打印严重的错误信息

X

XUpdate - Class in com.xuexiang.xupdate
版本更新的入口

_

_XUpdate - Class in com.xuexiang.xupdate
内部版本更新参数的获取
_XUpdate() - Constructor for class com.xuexiang.xupdate._XUpdate
 
A B C D E F G H I K L M N O P R S T U V W X _ 
Skip navigation links