public class

GoalsResult

extends Object
implements Parcelable Result
java.lang.Object
   ↳ com.google.android.gms.fitness.result.GoalsResult

Class Overview

Result of readCurrentGoals(GoogleApiClient, GoalsReadRequest). Contains all of the current goals. The method getGoals() can be used to fetch the resulting goals.

The method getStatus() can be be used to confirm that the request was successful.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<GoalsResult> CREATOR
Public Methods
List<Goal> getGoals()
Returns all current goals that matched the request.
Status getStatus()
Returns the status of this result.
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable
From interface com.google.android.gms.common.api.Result

Fields

public static final Creator<GoalsResult> CREATOR

Public Methods

public List<Goal> getGoals ()

Returns all current goals that matched the request. Returns an empty list if no goals are found.

Returns
List<Goal>

public Status getStatus ()

Returns the status of this result. Use isSuccess() to determine whether the call was successful, and getStatusCode() to determine what the error cause was.

Certain errors are due to failures that can be resolved by launching a particular intent. The resolution intent is available via getResolution().

Returns
Status

public void writeToParcel (Parcel dest, int flags)

Parameters
dest Parcel
flags int