Summary: Protected Ctors | Methods | Inherited Methods | [Expand All]
public abstract class

# ResolvingResultCallbacks

extends ResultCallbacks<R extends Result>

java.lang.Object
↳ | com.google.android.gms.common.api.ResultCallbacks<R extends com.google.android.gms.common.api.Result>
| ↳ | com.google.android.gms.common.api.ResolvingResultCallbacks<R extends com.google.android.gms.common.api.Result>

## Class Overview

`ResultCallbacks` which automatically start resolutions for failures. Contains separate callbacks for success and unresolvable failures.

These methods are called on the main thread, unless overridden by `setHandler(Handler)`.

## Summary

Protected Constructors
| ResolvingResultCallbacks(Activity activity, int requestCode) Create new callbacks that automatically resolve failure.

Public Methods
abstract void | onSuccess(R result) Called when the `Result` is ready and was successful.
abstract void | onUnresolvableFailure(Status result) Called when a non-resolvable failure occurs or starting a resolution fails.

[Expand] Inherited Methods
From class com.google.android.gms.common.api.ResultCallbacks
abstract void | onFailure(Status result) Called when the `Result` is ready and a failure occurred.
abstract void | onSuccess(R result) Called when the `Result` is ready and was successful.
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface com.google.android.gms.common.api.ResultCallback
abstract void | onResult(R result) Called when the `Result` is ready.

## Protected Constructors

#### protected ResolvingResultCallbacks (Activity activity, int requestCode)

Create new callbacks that automatically resolve failure.

##### Parameters

activity | Activity to use for displaying UI to resolve failures. This activity will receive a call to `onActivityResult(int, int, Intent)` with the given request code when the user completes a resolution.
requestCode | If >= 0, this code will be passed to `onActivityResult(int, int, Intent)` after the user completes a resolution.

## Public Methods

#### public abstract void onSuccess (R result)

Called when the `Result` is ready and was successful.

It is the responsibility of the callback to release any resources associated with the result if `onSuccess(R)` is called. Some result types may implement `Releasable`, in which case `release()` should be used to free the associated resources. If a failure occurs the result will be released automatically.

##### Parameters

result | The result from the API call. Never null.

#### public abstract void onUnresolvableFailure (Status result)

Called when a non-resolvable failure occurs or starting a resolution fails.

##### Parameters

result | Status resulting from the API call. Guaranteed to be non-null and unsuccessful.