HealthConnectFeatures


@ExperimentalFeatureAvailabilityApi
public interface HealthConnectFeatures


Interface for checking availability of features in HealthConnectClient.

Summary

Constants

default static final int

Feature constant for planned exercise sessions.

default static final int

Feature constant for reading health data history.

default static final int

Feature constant for reading health data in background.

default static final int

Feature constant for skin temperature.

default static final int

Indicates that a feature is available and the corresponding APIs can be used at runtime.

default static final int

Indicates that a feature is unavailable and the corresponding APIs cannot be used at runtime.

Public methods

abstract int
getFeatureStatus(int feature)

Checks whether the given feature is available.

Constants

FEATURE_PLANNED_EXERCISE

Added in 1.1.0-alpha10
default static final int FEATURE_PLANNED_EXERCISE = 3

Feature constant for planned exercise sessions.

FEATURE_READ_HEALTH_DATA_HISTORY

Added in 1.1.0-alpha10
default static final int FEATURE_READ_HEALTH_DATA_HISTORY = 4

Feature constant for reading health data history.

FEATURE_READ_HEALTH_DATA_IN_BACKGROUND

Added in 1.1.0-alpha10
default static final int FEATURE_READ_HEALTH_DATA_IN_BACKGROUND = 1

Feature constant for reading health data in background.

FEATURE_SKIN_TEMPERATURE

Added in 1.1.0-alpha10
default static final int FEATURE_SKIN_TEMPERATURE = 2

Feature constant for skin temperature.

FEATURE_STATUS_AVAILABLE

Added in 1.1.0-alpha10
default static final int FEATURE_STATUS_AVAILABLE = 2

Indicates that a feature is available and the corresponding APIs can be used at runtime.

FEATURE_STATUS_UNAVAILABLE

Added in 1.1.0-alpha10
default static final int FEATURE_STATUS_UNAVAILABLE = 1

Indicates that a feature is unavailable and the corresponding APIs cannot be used at runtime.

Public methods

getFeatureStatus

Added in 1.1.0-alpha10
abstract int getFeatureStatus(int feature)

Checks whether the given feature is available.

Parameters
int feature

the feature to be checked. One of the "FEATURE_" constants in this class.