Enqueue callback function to run on application UI thread. This is the only method, which can be access from any thread if other is not specified. Use this method to access UI thread and safely perform user-specific work and access JWM API. @param callback function for executi
(Runnable callback)
| 75 | * @param callback function for execution on UI thread |
| 76 | */ |
| 77 | public static void runOnUIThread(Runnable callback) { |
| 78 | if (_onUIThread()) |
| 79 | callback.run(); |
| 80 | else |
| 81 | _nRunOnUIThread(callback); |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * <p>Get desktop environment screens configurations.</p> |
no test coverage detected