Skip to content

Instantly share code, notes, and snippets.

@LunNova
Created May 12, 2012 12:23
Show Gist options
  • Select an option

  • Save LunNova/2666277 to your computer and use it in GitHub Desktop.

Select an option

Save LunNova/2666277 to your computer and use it in GitHub Desktop.
interface MFSCallback{
void onSuccess(Object data);
void onError(Exception e);
}
//(EXAMPLE CALLS)
mfs.getDB("DBname", new MFSCallback{void onSuccess(Object d){/*Do something with the data - you know what type it is already.*/} void onError(){/*Do something to handle the error.*/}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment