Requests.UpdateRequestsResult | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Methods | Inherited Methods | [Expand All]
public static interface

# Requests.UpdateRequestsResult

implements Releasable Result

com.google.android.gms.games.request.Requests.UpdateRequestsResult

## Class Overview

Result delivered when requests are updated. Possible status codes include:

- `STATUS_OK` if all of the requests updated successfully.
- `STATUS_NETWORK_ERROR_OPERATION_FAILED` if the update operation failed due to network error.
- `STATUS_REQUEST_UPDATE_PARTIAL_SUCCESS` if only some of the updates could be successfully applied.
- `STATUS_REQUEST_UPDATE_TOTAL_FAILURE` if all of the update operations failed with hard errors. Retrying will not change this result.
- `STATUS_CLIENT_RECONNECT_REQUIRED` if the client needs to reconnect to the service to access this data.
- `STATUS_INTERNAL_ERROR` if an unexpected error occurred in the service.

## Summary

Public Methods
abstract Set<String> | getRequestIds() Provides the set of all the request IDs that were used for the update.
abstract int | getRequestOutcome(String requestId) Retrieve the outcome of updating the specified request.

[Expand] Inherited Methods
From interface com.google.android.gms.common.api.Releasable
abstract void | release()
From interface com.google.android.gms.common.api.Result
abstract Status | getStatus()

## Public Methods

#### public abstract Set<String> getRequestIds ()

Provides the set of all the request IDs that were used for the update. This set does not preserve the original order in which updates were performed or added to the RequestUpdateOutcomes object.

##### Returns

- The set of all the external request IDs that were a part of the update operation.

#### public abstract int getRequestOutcome (String requestId)

Retrieve the outcome of updating the specified request. If the request ID was not part of the original update operation, this will throw an exception.

##### Parameters

requestId | The external request ID to lookup.

##### Returns

- The outcome of the update for the given request.