Hide

Batch.Builder

public static final class Batch.Builder extends Object
java.lang.Object
   ↳ com.google.android.gms.common.api.Batch.Builder

Builder for Batch objects. Note that this class is not thread-safe, by design.

Public Constructor Summary

Batch.Builder(GoogleApiClient googleApiClient)

Public Method Summary

<R extends Result> BatchResultToken<R>
add(PendingResult<R> pendingResult)
Batch
build()

Public Constructors

public Batch.Builder (GoogleApiClient googleApiClient)

Public Methods

public BatchResultToken<R> add (PendingResult<R> pendingResult)

Adds a PendingResult to the batch. The returned token can be used to retrieve the result from the BatchResult passed to the result callback.

Parameters
pendingResult Items to wait for completion of.
Returns
  • The result token to use to get the result from the BatchResult.

public Batch build ()