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

# TransformedResult

extends Object

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

## Class Overview

Represents a pending result that has been transformed by one or more subsequent API calls.

The result can either be consumed by callbacks set using `andFinally(ResultCallbacks)` or used as input to another API call using `then(ResultTransform)`. It is an error to call both of these methods, or one of them multiple times, on a single instance.

##### See Also

- `then(ResultTransform)`

## Summary

Public Constructors
| TransformedResult()

Public Methods
abstract void | andFinally(ResultCallbacks<? super R> callbacks) Requests that the supplied callbacks are called when the result is ready.
abstract <S extends Result> TransformedResult<S> | then(ResultTransform<? super R, ? extends S> transform) Transforms the result by making another API call.

[Expand] Inherited Methods
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()

## Public Constructors

#### public TransformedResult ()

## Public Methods

#### public abstract void andFinally (ResultCallbacks<? super R> callbacks)

Requests that the supplied callbacks are called when the result is ready.

#### public abstract TransformedResult<S> then (ResultTransform<? super R, ? extends S> transform)

Transforms the result by making another API call.

If the result is successful, then `onSuccess(R)` will be called to make the additional API call that yields the transformed result. If the result is a failure, then `onFailure(Status)` will be called to (optionally) allow modification of failure status.

If the result implements `Releasable`, then `release()` will be called once the transform has been applied.

for more details and sample code.

##### See Also

- `then(ResultTransform)`