In the Blackberry application class, what's the difference between hasEventThread () and isHandlingEvents ()

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

From BB docs for Applicaiton:

public boolean hasEventThread () Determines whether this application has an event dispatcher. Returns: True, if this application introduced an event dispatcher (i.e., it called Application.enterEventDispatcher ()); otherwise false. isHandlingEvents

public final boolean isHandlingEvents () Determines whether this application is in the event loop. Returns: True if the application has entered an event dispatch loop; otherwise false.

My only guess is that isHandlingEvents most often happens sometime after hasEventThread. But is it really helpful?

+3
source share
1 answer

They do the same thing. I'm not sure why they both exist; probably outdated code, and they may have done different things in the past. But they certainly converged, as now.

+1
source

Source: https://habr.com/ru/post/1747263/


All Articles