public class Looper extends Object implements Executor, Inspector.Collector
| 限定符和类型 | 类和说明 |
|---|---|
class |
Looper.FixRateScheduleHandle |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkLooper() |
void |
close() |
void |
collect(Inspector.Callback callback) |
void |
execute(Runnable command) |
static Looper |
getLowPriorityLooper()
获取一个全局的低优looper
|
boolean |
inLooper() |
void |
post(Runnable runnable) |
void |
post(Runnable runnable,
boolean first) |
void |
postDelay(Runnable runnable,
long delay) |
Looper.FixRateScheduleHandle |
scheduleWithRate(Runnable runnable,
long rate)
已过时。
|
Looper.FixRateScheduleHandle |
scheduleWithRate(Runnable runnable,
Number rate)
这个接口,可以支持非固定速率
|
Looper |
startLoop() |
public Looper(String looperName)
public static Looper getLowPriorityLooper()
public Looper startLoop()
public void post(Runnable runnable)
public void post(Runnable runnable, boolean first)
public void postDelay(Runnable runnable, long delay)
@Deprecated public Looper.FixRateScheduleHandle scheduleWithRate(Runnable runnable, long rate)
scheduleWithRate(java.lang.Runnable, java.lang.Number)public Looper.FixRateScheduleHandle scheduleWithRate(Runnable runnable, Number rate)
public void collect(Inspector.Callback callback)
collect 在接口中 Inspector.Collectorpublic boolean inLooper()
public void checkLooper()
public void close()
Copyright © 2022. All rights reserved.