Created
March 2, 2016 09:51
-
-
Save codenameone/08f8de7590674e47683b to your computer and use it in GitHub Desktop.
Sample of the Codename One ConnectionRequest with a listener
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ConnectionRequest request = new ConnectionRequest(url, false); | |
| request.addResponseListener((e) -> { | |
| // process the response | |
| }); | |
| // request will be handled asynchronously | |
| NetworkManager.getInstance().addToQueue(request); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample usage of ConnectionRequest.
From the Codename One project