GoalsResult
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Inherited Method Summary
From class java.lang.Object
From interface android.os.Parcelable
abstract int |
describeContents
()
|
abstract void |
writeToParcel
( Parcel
arg0,
int arg1)
|
From interface com.google.android.gms.common.api.Result
Public Methods
public List
< Goal
>
getGoals
()
Returns all current goals that matched the request. Returns an empty list if no
goals are found.
public void
writeToParcel
( Parcel
dest, int
flags)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eGoalsResult\u003c/code\u003e is deprecated and will not be replaced.\u003c/p\u003e\n"],["\u003cp\u003eIt was used to hold the result of a request to read current fitness goals.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003egetGoals()\u003c/code\u003e to retrieve the list of goals from the result.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003egetStatus()\u003c/code\u003e to check if the request was successful.\u003c/p\u003e\n"]]],[],null,["# GoalsResult\n\npublic class **GoalsResult** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nimplements [Parcelable](//developer.android.com/reference/android/os/Parcelable.html) [Result](/android/reference/com/google/android/gms/common/api/Result) \n**This class is deprecated.** \n\nNo replacement.\n\nResult of [GoalsApi.readCurrentGoals(GoogleApiClient, GoalsReadRequest)](/android/reference/com/google/android/gms/fitness/GoalsApi#readCurrentGoals(com.google.android.gms.common.api.GoogleApiClient,%20com.google.android.gms.fitness.request.GoalsReadRequest)). Contains all of the\ncurrent goals. The method [getGoals()](/android/reference/com/google/android/gms/fitness/result/GoalsResult#getGoals())\ncan be used to fetch the resulting goals.\n\nThe method [getStatus()](/android/reference/com/google/android/gms/fitness/result/GoalsResult#getStatus())\ncan be be used to confirm that the request was successful. \n\n### Inherited Constant Summary\n\nFrom interface android.os.Parcelable \n\n|-----|-------------------------------|---|\n| int | CONTENTS_FILE_DESCRIPTOR | |\n| int | PARCELABLE_WRITE_RETURN_VALUE | |\n\n### Field Summary\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|---|\n| public static final [Creator](//developer.android.com/reference/android/os/Parcelable.Creator.html)\\\u003c[GoalsResult](/android/reference/com/google/android/gms/fitness/result/GoalsResult)\\\u003e | [CREATOR](/android/reference/com/google/android/gms/fitness/result/GoalsResult#CREATOR) | |\n\n### Public Method Summary\n\n|--------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [List](//developer.android.com/reference/java/util/List.html)\\\u003c[Goal](/android/reference/com/google/android/gms/fitness/data/Goal)\\\u003e | [getGoals](/android/reference/com/google/android/gms/fitness/result/GoalsResult#getGoals())() Returns all current goals that matched the request. |\n| [Status](/android/reference/com/google/android/gms/common/api/Status) | [getStatus](/android/reference/com/google/android/gms/fitness/result/GoalsResult#getStatus())() |\n| void | [writeToParcel](/android/reference/com/google/android/gms/fitness/result/GoalsResult#writeToParcel(android.os.Parcel,%20int))([Parcel](//developer.android.com/reference/android/os/Parcel.html) dest, int flags) |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface android.os.Parcelable \n\n|---------------|--------------------------------------------------------------------------------------------------|\n| abstract int | describeContents() |\n| abstract void | writeToParcel([Parcel](//developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |\n\nFrom interface com.google.android.gms.common.api.Result \n\n|--------------------------------------------------------------------------------|-------------|\n| abstract [Status](/android/reference/com/google/android/gms/common/api/Status) | getStatus() |\n\nFields\n------\n\n#### public static final [Creator](//developer.android.com/reference/android/os/Parcelable.Creator.html)\\\u003c[GoalsResult](/android/reference/com/google/android/gms/fitness/result/GoalsResult)\\\u003e\n**CREATOR**\n\nPublic Methods\n--------------\n\n#### public [List](//developer.android.com/reference/java/util/List.html)\\\u003c[Goal](/android/reference/com/google/android/gms/fitness/data/Goal)\\\u003e\n**getGoals** ()\n\nReturns all current goals that matched the request. Returns an empty list if no\ngoals are found. \n\n#### public [Status](/android/reference/com/google/android/gms/common/api/Status)\n**getStatus** ()\n\n#### public void **writeToParcel** ([Parcel](//developer.android.com/reference/android/os/Parcel.html) dest, int flags)"]]