toggle menu
hooks2
common
switch theme
search in API
hooks2
/
xyz.junerver.compose.hooks.userequest
/
PluginLifecycle
Plugin
Lifecycle
abstract
class
PluginLifecycle
<
TData
>
插件的生命周期对象:这个对象是插件
Plugin.invoke
方法执行后的返回值, 用来让插件监听请求的生命周期,当执行异步请求时,会在不同的阶段调用插件的生命周期;
Members
Constructors
Plugin
Lifecycle
Link copied to clipboard
constructor
(
)
Properties
on
Before
Link copied to clipboard
open
val
onBefore
:
PluginOnBefore
<
TData
>
?
=
null
on
Cancel
Link copied to clipboard
open
val
onCancel
:
PluginOnCancel
?
=
null
on
Error
Link copied to clipboard
open
val
onError
:
PluginOnError
?
=
null
on
Finally
Link copied to clipboard
open
val
onFinally
:
PluginOnFinally
<
TData
>
?
=
null
on
Mutate
Link copied to clipboard
open
val
onMutate
:
PluginOnMutate
<
TData
>
?
=
null
on
Request
Link copied to clipboard
open
val
onRequest
:
PluginOnRequest
<
TData
>
?
=
null
on
Success
Link copied to clipboard
open
val
onSuccess
:
PluginOnSuccess
<
TData
>
?
=
null