PageRenderTime 49ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 1ms

/app/libs/Parse-1.3.0-javadoc/com/parse/RequestPasswordResetCallback.html

https://gitlab.com/santoshvarma4u/ChefMonster-Copy
HTML | 280 lines | 225 code | 33 blank | 22 comment | 0 complexity | b6d3c874a4aa5007febb332b7f3a4bb3 MD5 | raw file
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_45) on Thu May 30 13:37:14 PDT 2013 -->
  6. <TITLE>
  7. RequestPasswordResetCallback
  8. </TITLE>
  9. <META NAME="date" CONTENT="2013-05-30">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../style.css" TITLE="Style">
  11. <SCRIPT type="text/javascript">
  12. function windowTitle()
  13. {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="RequestPasswordResetCallback";
  16. }
  17. }
  18. </SCRIPT>
  19. <NOSCRIPT>
  20. </NOSCRIPT>
  21. </HEAD>
  22. <BODY BGCOLOR="white" onload="windowTitle();">
  23. <HR>
  24. <!-- ========= START OF TOP NAVBAR ======= -->
  25. <A NAME="navbar_top"><!-- --></A>
  26. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  27. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  28. <TR>
  29. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  30. <A NAME="navbar_top_firstrow"><!-- --></A>
  31. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  32. <TR ALIGN="center" VALIGN="top">
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../com/parse/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  34. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RequestPasswordResetCallback.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  36. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  39. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  40. </TR>
  41. </TABLE>
  42. </TD>
  43. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  44. </EM>
  45. </TD>
  46. </TR>
  47. <TR>
  48. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  49. &nbsp;<A HREF="../../com/parse/RefreshCallback.html" title="class in com.parse"><B>PREV CLASS</B></A>&nbsp;
  50. &nbsp;<A HREF="../../com/parse/SaveCallback.html" title="class in com.parse"><B>NEXT CLASS</B></A></FONT></TD>
  51. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  52. <A HREF="../../index.html?com/parse/RequestPasswordResetCallback.html" target="_top"><B>FRAMES</B></A> &nbsp;
  53. &nbsp;<A HREF="RequestPasswordResetCallback.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  54. &nbsp;<SCRIPT type="text/javascript">
  55. <!--
  56. if(window==top) {
  57. document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
  58. }
  59. //-->
  60. </SCRIPT>
  61. <NOSCRIPT>
  62. <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
  63. </NOSCRIPT>
  64. </FONT></TD>
  65. </TR>
  66. <TR>
  67. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  68. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  69. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  70. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  71. </TR>
  72. </TABLE>
  73. <A NAME="skip-navbar_top"></A>
  74. <!-- ========= END OF TOP NAVBAR ========= -->
  75. <HR>
  76. <!-- ======== START OF CLASS DATA ======== -->
  77. <H2>
  78. <FONT SIZE="-1">
  79. com.parse</FONT>
  80. <BR>
  81. Class RequestPasswordResetCallback</H2>
  82. <PRE>
  83. <A target="_top" HREF="http://developer.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>
  84. <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>com.parse.RequestPasswordResetCallback</B>
  85. </PRE>
  86. <HR>
  87. <DL>
  88. <DT><PRE>public abstract class <B>RequestPasswordResetCallback</B><DT>extends <A target="_top" HREF="http://developer.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
  89. </PRE>
  90. <P>
  91. A RequestPasswordResetCallback is used to run code requesting a password reset for a user.
  92. <p>
  93. The easiest way to use a RequestPasswordResetCallback is through an anonymous inner class.
  94. Override the <code>done</code> function to specify what the callback should do after the request
  95. is complete. The <code>done</code> function will be run in the UI thread, while the request
  96. happens in a background thread. This ensures that the UI does not freeze while the request
  97. happens.
  98. <p>
  99. For example, this sample code requests a password reset for a user and calls a different function
  100. depending on whether the request succeeded or not.
  101. <p>
  102. <pre>
  103. ParseUser.requestPasswordResetInBackground(&quot;forgetful@example.com&quot;,
  104. new RequestPasswordResetCallback() {
  105. public void done(ParseException e) {
  106. if (e == null) {
  107. requestedSuccessfully();
  108. } else {
  109. requestDidNotSucceed();
  110. }
  111. }
  112. });
  113. </pre>
  114. <P>
  115. <P>
  116. <HR>
  117. <P>
  118. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  119. <A NAME="constructor_summary"><!-- --></A>
  120. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  121. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  122. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  123. <B>Constructor Summary</B></FONT></TH>
  124. </TR>
  125. <TR BGCOLOR="white" CLASS="TableRowColor">
  126. <TD><CODE><B><A HREF="../../com/parse/RequestPasswordResetCallback.html#RequestPasswordResetCallback()">RequestPasswordResetCallback</A></B>()</CODE>
  127. <BR>
  128. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  129. </TR>
  130. </TABLE>
  131. &nbsp;
  132. <!-- ========== METHOD SUMMARY =========== -->
  133. <A NAME="method_summary"><!-- --></A>
  134. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  135. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  136. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  137. <B>Method Summary</B></FONT></TH>
  138. </TR>
  139. <TR BGCOLOR="white" CLASS="TableRowColor">
  140. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  141. <CODE>abstract &nbsp;void</CODE></FONT></TD>
  142. <TD><CODE><B><A HREF="../../com/parse/RequestPasswordResetCallback.html#done(com.parse.ParseException)">done</A></B>(<A HREF="../../com/parse/ParseException.html" title="class in com.parse">ParseException</A>&nbsp;e)</CODE>
  143. <BR>
  144. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Override this function with the code you want to run after the request is complete.</TD>
  145. </TR>
  146. </TABLE>
  147. &nbsp;<A NAME="methods_inherited_from_class_Object"><!-- --></A>
  148. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  149. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  150. <TH ALIGN="left"><B>Methods inherited from class <A target="_top" HREF="http://developer.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
  151. </TR>
  152. <TR BGCOLOR="white" CLASS="TableRowColor">
  153. <TD><CODE><A target="_top" HREF="http://developer.android.com/reference/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A target="_top" HREF="http://developer.android.com/reference/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A target="_top" HREF="http://developer.android.com/reference/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A target="_top" HREF="http://developer.android.com/reference/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A target="_top" HREF="http://developer.android.com/reference/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A target="_top" HREF="http://developer.android.com/reference/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A target="_top" HREF="http://developer.android.com/reference/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A target="_top" HREF="http://developer.android.com/reference/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A target="_top" HREF="http://developer.android.com/reference/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A target="_top" HREF="http://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A target="_top" HREF="http://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  154. </TR>
  155. </TABLE>
  156. &nbsp;
  157. <P>
  158. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  159. <A NAME="constructor_detail"><!-- --></A>
  160. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  161. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  162. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  163. <B>Constructor Detail</B></FONT></TH>
  164. </TR>
  165. </TABLE>
  166. <A NAME="RequestPasswordResetCallback()"><!-- --></A><H3>
  167. RequestPasswordResetCallback</H3>
  168. <PRE>
  169. public <B>RequestPasswordResetCallback</B>()</PRE>
  170. <DL>
  171. </DL>
  172. <!-- ============ METHOD DETAIL ========== -->
  173. <A NAME="method_detail"><!-- --></A>
  174. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  175. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  176. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  177. <B>Method Detail</B></FONT></TH>
  178. </TR>
  179. </TABLE>
  180. <A NAME="done(com.parse.ParseException)"><!-- --></A><H3>
  181. done</H3>
  182. <PRE>
  183. public abstract void <B>done</B>(<A HREF="../../com/parse/ParseException.html" title="class in com.parse">ParseException</A>&nbsp;e)</PRE>
  184. <DL>
  185. <DD>Override this function with the code you want to run after the request is complete.
  186. <P>
  187. <DD><DL>
  188. <DT><B>Parameters:</B><DD><CODE>e</CODE> - The exception raised by the save, or null if no account is associated with the email
  189. address.</DL>
  190. </DD>
  191. </DL>
  192. <!-- ========= END OF CLASS DATA ========= -->
  193. <HR>
  194. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  195. <A NAME="navbar_bottom"><!-- --></A>
  196. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  197. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  198. <TR>
  199. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  200. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  201. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  202. <TR ALIGN="center" VALIGN="top">
  203. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../com/parse/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  204. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  205. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RequestPasswordResetCallback.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  206. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  207. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  208. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  209. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  210. </TR>
  211. </TABLE>
  212. </TD>
  213. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  214. </EM>
  215. </TD>
  216. </TR>
  217. <TR>
  218. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  219. &nbsp;<A HREF="../../com/parse/RefreshCallback.html" title="class in com.parse"><B>PREV CLASS</B></A>&nbsp;
  220. &nbsp;<A HREF="../../com/parse/SaveCallback.html" title="class in com.parse"><B>NEXT CLASS</B></A></FONT></TD>
  221. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  222. <A HREF="../../index.html?com/parse/RequestPasswordResetCallback.html" target="_top"><B>FRAMES</B></A> &nbsp;
  223. &nbsp;<A HREF="RequestPasswordResetCallback.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  224. &nbsp;<SCRIPT type="text/javascript">
  225. <!--
  226. if(window==top) {
  227. document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
  228. }
  229. //-->
  230. </SCRIPT>
  231. <NOSCRIPT>
  232. <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
  233. </NOSCRIPT>
  234. </FONT></TD>
  235. </TR>
  236. <TR>
  237. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  238. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  239. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  240. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  241. </TR>
  242. </TABLE>
  243. <A NAME="skip-navbar_bottom"></A>
  244. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  245. <HR>
  246. </BODY>
  247. </HTML>