toggle menu
AppUpdater
androidJvm
switch theme
search in API
app-updater
/
com.king.app.updater.http
/
OkHttpManager
Ok
Http
Manager
open
class
OkHttpManager
:
IHttpManager
OkHttpManager使用
OkHttpClient
实现的
IHttpManager
使用 OkHttpManager 时必须依赖 OkHttp 库
Author
Jenly
Members
Constructors
Ok
Http
Manager
Link copied to clipboard
constructor
(
timeout
:
Int
)
HttpManager对外暴露。如果没有特殊需求,推荐使用
getInstance
constructor
(
@
NonNull
okHttpClient
:
OkHttpClient
)
HttpManager对外暴露,推荐使用
getInstance
Functions
cancel
Link copied to clipboard
open
fun
cancel
(
)
取消下载
download
Link copied to clipboard
open
fun
download
(
url
:
String
,
saveFilePath
:
String
,
@
Nullable
requestProperty
:
Map
<
String
,
String
>
,
callback
:
IHttpManager.DownloadCallback
)
下载
get
Instance
Link copied to clipboard
open
fun
getInstance
(
)
:
OkHttpManager