Skip to content

Instantly share code, notes, and snippets.

@olegflo
Created October 20, 2012 15:14
Show Gist options
  • Select an option

  • Save olegflo/3923538 to your computer and use it in GitHub Desktop.

Select an option

Save olegflo/3923538 to your computer and use it in GitHub Desktop.
qbdoc
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