public interface Lifecycle
限定符和类型 | 方法和说明 |
---|---|
boolean |
isRunning()
状态判断
|
Lifecycle |
once(LifecycleEvent event,
LifecycleListener listener)
添加监听
|
void |
start()
启动
|
void |
stop()
关闭
|
void start()
void stop()
boolean isRunning()
Lifecycle once(LifecycleEvent event, LifecycleListener listener)