Quests.ClaimMilestoneResult | 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

# Quests.ClaimMilestoneResult

implements Result

com.google.android.gms.games.quest.Quests.ClaimMilestoneResult

## Class Overview

Result delivered when claiming a milestone.

Possible status codes include:

- `STATUS_OK` the milestone was successfully claimed.
- `STATUS_MILESTONE_CLAIMED_PREVIOUSLY` if the milestone was previously claimed for this player.
- `STATUS_MILESTONE_CLAIM_FAILED` if the milestone is not currently eligible for claiming. Usually, this means that the quest has expired or the local event counts are out of sync with the server.
- `STATUS_NETWORK_ERROR_OPERATION_FAILED` if the network request to claim the milestone fails failed.
- `STATUS_INTERNAL_ERROR` if an unexpected error occurred in the service.

## Summary

Public Methods
abstract Milestone | getMilestone()
abstract Quest | getQuest()

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

## Public Methods

#### public abstract Milestone getMilestone ()

##### Returns

- The claimed milestone. This will be null if the claim operation did not succeed.

#### public abstract Quest getQuest ()

##### Returns

- The quest owning the claimed milestone. This will be null if the claim operation did not succeed.