Google is committed to advancing racial equity for Black communities. See how.

FitnessOptions.Builder

public static final class FitnessOptions.Builder extends Object

Builder to build FitnessOptions.

Public Method Summary

FitnessOptions.Builder
accessActivitySessions(int accessType)
Builder to build FitnessOptions for fitness activity sessions with read or write access.
FitnessOptions.Builder
accessSleepSessions(int accessType)
Builder to build FitnessOptions for sleep sessions with read or write access.
FitnessOptions.Builder
addDataType(DataType datatype, int accessType)
Builder to build FitnessOptions for given DataType with read or write access.
FitnessOptions.Builder
addDataType(DataType datatype)
Builder to build FitnessOptions for given DataType with read access.
FitnessOptions

Inherited Method Summary

Public Methods

public FitnessOptions.Builder accessActivitySessions (int accessType)

Builder to build FitnessOptions for fitness activity sessions with read or write access.

Parameters
accessType ACCESS_READ or ACCESS_WRITE.

public FitnessOptions.Builder accessSleepSessions (int accessType)

Builder to build FitnessOptions for sleep sessions with read or write access.

Parameters
accessType ACCESS_READ or ACCESS_WRITE.

public FitnessOptions.Builder addDataType (DataType datatype, int accessType)

Builder to build FitnessOptions for given DataType with read or write access.

Parameters
datatype
accessType ACCESS_READ or ACCESS_WRITE.

public FitnessOptions.Builder addDataType (DataType datatype)

Builder to build FitnessOptions for given DataType with read access.

public FitnessOptions build ()