开发者

In Blackberry's Application class what is the difference between hasEventThread() and isHandlingEvents()

开发者 https://www.devze.com 2022-12-31 23:32 出处:网络
In Blackberry\'s Application class what is the difference between hasEventThread() and isHandlingEvents().I\'m just curious, because I have only found hasEventThread useful.

In Blackberry's Application class what is the difference between hasEventThread() and isHandlingEvents(). I'm just curious, because I have only found hasEventThread useful.

From BB's docs for Applicaiton:

public boolean hasEventThread() Determines if this application has entered the event dispatcher. Returns: True if this application has entered the event dispatcher (i.e. has invoked Application.enterEventDispatcher()); otherwise, false. isHandlingEvents

public final boolean isHandl开发者_如何学编程ingEvents() Determines if this application has entered the event dispatch loop. Returns: True if the application has entered the event dispatch loop; otherwise, false.

My only guess is that isHandlingEvents most happen sometime after hasEventThread. But is that really that useful?


They do exactly the same thing. I'm not sure why they both exist; probably legacy code and they possibly did different things in the past. But they've certainly converged as on now.

0

精彩评论

暂无评论...
验证码 换一张
取 消