toggle menu
AppUpdater
androidJvm
switch theme
search in API
app-updater
/
com.king.app.updater
/
AppUpdater
App
Updater
open
class
AppUpdater
AppUpdater:一个专注于App更新,一键傻瓜式集成App版本升级的轻量开源库
Author
Jenly
Jenly
Members
Constructors
App
Updater
Link copied to clipboard
constructor
(
@
NonNull
context
:
Context
,
@
NonNull
config
:
UpdateConfig
)
构造
constructor
(
@
NonNull
context
:
Context
,
@
NonNull
url
:
String
)
构造
Types
Builder
Link copied to clipboard
open
class
Builder
AppUpdater建造者
Functions
set
Http
Manager
Link copied to clipboard
open
fun
setHttpManager
(
@
Nullable
httpManager
:
IHttpManager
)
:
AppUpdater
设置一个
IHttpManager
set
Notification
Link copied to clipboard
open
fun
setNotification
(
@
Nullable
notification
:
INotification
)
:
AppUpdater
设置一个
INotification
set
Update
Callback
Link copied to clipboard
open
fun
setUpdateCallback
(
@
Nullable
callback
:
UpdateCallback
)
:
AppUpdater
设置下载更新进度回调
start
Link copied to clipboard
open
fun
start
(
)
开始下载
stop
Link copied to clipboard
open
fun
stop
(
)
取消下载