Created
October 20, 2012 15:14
-
-
Save olegflo/3923538 to your computer and use it in GitHub Desktop.
qbdoc
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
| QBLocation location = new QBLocation(); | |
| location.setLatitude(35.0); | |
| location.setLongitude(53.0); | |
| location.setStatus("I'm at this place"); | |
| String someImportantString = "Dr. Henry Walton Indiana Jones"; | |
| QBLocations.createLocation(location, new QBCallbackImpl() { | |
| @Override | |
| public void onComplete(Result result, Object context) { | |
| // retrieve context object inside callback | |
| String passedContextObject = (String) context; | |
| System.out.println(passedContextObject); | |
| // do stuff with result | |
| } | |
| }, someImportantString); | |
| // output | |
| // 'Dr. Henry Walton Indiana Jones' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment