[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe latest version of \u003ccode\u003eApiFutureCallback\u003c/code\u003e is 2.46.1, as indicated by the "(latest)" tag in the version list.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides access to the documentation for \u003ccode\u003eApiFutureCallback\u003c/code\u003e across a range of versions, from 2.1.2 up to the latest 2.46.1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eApiFutureCallback\u003c/code\u003e is a callback interface designed to handle the results of an \u003ccode\u003eApiFuture\u003c/code\u003e, and is similar to Guava's \u003ccode\u003eFutureCallback\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe interface \u003ccode\u003eApiFutureCallback<V>\u003c/code\u003e includes two abstract methods: \u003ccode\u003eonFailure(Throwable t)\u003c/code\u003e to handle errors, and \u003ccode\u003eonSuccess(V result)\u003c/code\u003e to handle successful outcomes.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation covers the \u003ccode\u003eApiFutureCallback\u003c/code\u003e interface for the Google API Client Library for Java.\u003c/p\u003e\n"]]],[],null,["# Interface ApiFutureCallback<V> (2.52.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.52.0 (latest)](/java/docs/reference/api-common/latest/com.google.api.core.ApiFutureCallback)\n- [2.51.2](/java/docs/reference/api-common/2.51.2/com.google.api.core.ApiFutureCallback)\n- [2.50.0](/java/docs/reference/api-common/2.50.0/com.google.api.core.ApiFutureCallback)\n- [2.49.0](/java/docs/reference/api-common/2.49.0/com.google.api.core.ApiFutureCallback)\n- [2.48.0](/java/docs/reference/api-common/2.48.0/com.google.api.core.ApiFutureCallback)\n- [2.46.1](/java/docs/reference/api-common/2.46.1/com.google.api.core.ApiFutureCallback)\n- [2.45.0](/java/docs/reference/api-common/2.45.0/com.google.api.core.ApiFutureCallback)\n- [2.44.0](/java/docs/reference/api-common/2.44.0/com.google.api.core.ApiFutureCallback)\n- [2.43.0](/java/docs/reference/api-common/2.43.0/com.google.api.core.ApiFutureCallback)\n- [2.42.1](/java/docs/reference/api-common/2.42.1/com.google.api.core.ApiFutureCallback)\n- [2.41.0](/java/docs/reference/api-common/2.41.0/com.google.api.core.ApiFutureCallback)\n- [2.40.0](/java/docs/reference/api-common/2.40.0/com.google.api.core.ApiFutureCallback)\n- [2.38.0](/java/docs/reference/api-common/2.38.0/com.google.api.core.ApiFutureCallback)\n- [2.37.1](/java/docs/reference/api-common/2.37.1/com.google.api.core.ApiFutureCallback)\n- [2.36.0](/java/docs/reference/api-common/2.36.0/com.google.api.core.ApiFutureCallback)\n- [2.35.0](/java/docs/reference/api-common/2.35.0/com.google.api.core.ApiFutureCallback)\n- [2.34.0](/java/docs/reference/api-common/2.34.0/com.google.api.core.ApiFutureCallback)\n- [2.33.0](/java/docs/reference/api-common/2.33.0/com.google.api.core.ApiFutureCallback)\n- [2.32.0](/java/docs/reference/api-common/2.32.0/com.google.api.core.ApiFutureCallback)\n- [2.31.1](/java/docs/reference/api-common/2.31.1/com.google.api.core.ApiFutureCallback)\n- [2.30.0](/java/docs/reference/api-common/2.30.0/com.google.api.core.ApiFutureCallback)\n- [2.29.1](/java/docs/reference/api-common/2.29.1/com.google.api.core.ApiFutureCallback)\n- [2.28.0](/java/docs/reference/api-common/2.28.0/com.google.api.core.ApiFutureCallback)\n- [2.26.0](/java/docs/reference/api-common/2.26.0/com.google.api.core.ApiFutureCallback)\n- [2.25.0](/java/docs/reference/api-common/2.25.0/com.google.api.core.ApiFutureCallback)\n- [2.24.0](/java/docs/reference/api-common/2.24.0/com.google.api.core.ApiFutureCallback)\n- [2.22.0](/java/docs/reference/api-common/2.22.0/com.google.api.core.ApiFutureCallback)\n- [2.21.0](/java/docs/reference/api-common/2.21.0/com.google.api.core.ApiFutureCallback)\n- [2.20.0](/java/docs/reference/api-common/2.20.0/com.google.api.core.ApiFutureCallback)\n- [2.19.0](/java/docs/reference/api-common/2.19.0/com.google.api.core.ApiFutureCallback)\n- [2.18.0](/java/docs/reference/api-common/2.18.0/com.google.api.core.ApiFutureCallback)\n- [2.17.1](/java/docs/reference/api-common/2.17.1/com.google.api.core.ApiFutureCallback)\n- [2.16.0](/java/docs/reference/api-common/2.16.0/com.google.api.core.ApiFutureCallback)\n- [2.15.1](/java/docs/reference/api-common/2.15.1/com.google.api.core.ApiFutureCallback)\n- [2.14.1](/java/docs/reference/api-common/2.14.1/com.google.api.core.ApiFutureCallback)\n- [2.13.1](/java/docs/reference/api-common/2.13.1/com.google.api.core.ApiFutureCallback)\n- [2.7.0](/java/docs/reference/api-common/2.7.0/com.google.api.core.ApiFutureCallback)\n- [2.6.3](/java/docs/reference/api-common/2.6.3/com.google.api.core.ApiFutureCallback)\n- [2.5.0](/java/docs/reference/api-common/2.5.0/com.google.api.core.ApiFutureCallback)\n- [2.4.0](/java/docs/reference/api-common/2.4.0/com.google.api.core.ApiFutureCallback)\n- [2.3.1](/java/docs/reference/api-common/2.3.1/com.google.api.core.ApiFutureCallback)\n- [2.1.2](/java/docs/reference/api-common/2.1.2/com.google.api.core.ApiFutureCallback) \n\n public interface ApiFutureCallback\u003cV\u003e\n\nA callback for accepting the results of an [ApiFuture](/java/docs/reference/api-common/latest/com.google.api.core.ApiFuture).\n\nIt is similar to Guava's `FutureCallback`, redeclared so that Guava can be shaded.\n\nMethods\n-------\n\n### onFailure(Throwable t)\n\n public abstract void onFailure(Throwable t)\n\n### onSuccess(V result)\n\n public abstract void onSuccess(V result)"]]