FitnessOptions
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
public static final int
ACCESS_READ
public static final int
ACCESS_WRITE
Public Methods
public boolean equals (Object o)
public int getExtensionType ()
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."],[[["`FitnessOptions` enables requesting permissions for Google Fit data types via `GoogleSignIn`."],["Permissions are defined using Fitness data types, determining necessary scopes for the Google account."],["A builder class, `FitnessOptions.Builder`, is provided to construct `FitnessOptions` instances."],["Two access levels are available: `ACCESS_READ` and `ACCESS_WRITE`, for read and write permissions, respectively."],["This class facilitates integration with Google Fit for accessing and managing fitness data."]]],["`FitnessOptions` manages permissions for fitness data using `GoogleSignIn`. It determines required scopes for a `GoogleSignInAccount` based on specified fitness data types. Key actions include using a `Builder` to create `FitnessOptions` instances. `ACCESS_READ` and `ACCESS_WRITE` are constants for permission levels. Methods allow checking equality (`equals`), retrieving scope lists (`getImpliedScopes`), and obtaining the extension type (`getExtensionType`). It can convert it into a `Bundle`.\n"]]