Package com.parse
Interface SignUpCallback
-
public interface SignUpCallbackASignUpCallbackis used to run code after signing up aParseUserin a background thread.The easiest way to use a
SignUpCallbackis through an anonymous inner class. Override thedonefunction to specify what the callback should do after the save is complete. Thedonefunction will be run in the UI thread, while the signup happens in a background thread. This ensures that the UI does not freeze while the signup happens.For example, this sample code signs up the object
myUserand calls a different function depending on whether the signup succeeded or not.myUser.signUpInBackground(new SignUpCallback() { public void done(ParseException e) { if (e == null) { myUserSignedUpSuccessfully(); } else { myUserSignUpDidNotSucceed(); } } });
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddone(ParseException e)Override this function with the code you want to run after the signUp is complete.
-
-
-
Method Detail
-
done
void done(ParseException e)
Override this function with the code you want to run after the signUp is complete.- Parameters:
e- The exception raised by the signUp, ornullif it succeeded.
-
-