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
GoogleApiClient.Builder.setHandler(Handler).
|
ResolvingResultCallbacks(Activity
activity, int requestCode)
Create new callbacks that automatically resolve failure.
|
| abstract void | |
| abstract void |
onUnresolvableFailure(Status
result)
Called when a non-resolvable failure occurs or starting a resolution fails.
|
Create new callbacks that automatically resolve failure.
| activity | Activity to use for displaying UI to resolve failures. This activity will
receive a call to
Activity.onActivityResult(int, int, Intent) with the given request code
when the user completes a resolution. |
|---|---|
| requestCode | If >= 0, this code will be passed to
Activity.onActivityResult(int, int, Intent) after the user completes a
resolution. |
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 Releasable.release()
should be used to free the associated resources. If a failure occurs the result will be
released automatically.
| result | The result from the API call. Never null. |
|---|
Called when a non-resolvable failure occurs or starting a resolution fails.
| result | Status resulting from the API call. Guaranteed to be non-null and unsuccessful. |
|---|