PassiveMonitoringCapabilities


public final class PassiveMonitoringCapabilities


Contains the capabilities supported by androidx.health.services.client.PassiveMonitoringClient on this device.

Summary

Public constructors

PassiveMonitoringCapabilities(
    @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> supportedDataTypesPassiveMonitoring,
    @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> supportedDataTypesPassiveGoals,
    @NonNull Set<@NonNull HealthEvent.Type> supportedHealthEventTypes,
    @NonNull Set<@NonNull UserActivityState> supportedUserActivityStates
)

Public methods

final @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>>

Set of supported DataTypes for goal callbacks on this device.

final @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>>

Set of supported DataTypes for background capture on this device.

final @NonNull Set<@NonNull HealthEvent.Type>

Set of supported HealthEvent.Types on this device.

final @NonNull Set<@NonNull UserActivityState>

Set of supported UserActivityStates on this device.

@NonNull String

Public constructors

PassiveMonitoringCapabilities

public PassiveMonitoringCapabilities(
    @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> supportedDataTypesPassiveMonitoring,
    @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> supportedDataTypesPassiveGoals,
    @NonNull Set<@NonNull HealthEvent.Type> supportedHealthEventTypes,
    @NonNull Set<@NonNull UserActivityState> supportedUserActivityStates
)

Public methods

getSupportedDataTypesPassiveGoals

Added in 1.0.0
public final @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> getSupportedDataTypesPassiveGoals()

Set of supported DataTypes for goal callbacks on this device.

getSupportedDataTypesPassiveMonitoring

Added in 1.0.0
public final @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> getSupportedDataTypesPassiveMonitoring()

Set of supported DataTypes for background capture on this device.

Some data types are only available during exercise (e.g. location) or for measurements.

getSupportedHealthEventTypes

Added in 1.0.0
public final @NonNull Set<@NonNull HealthEvent.TypegetSupportedHealthEventTypes()

Set of supported HealthEvent.Types on this device.

getSupportedUserActivityStates

Added in 1.0.0
public final @NonNull Set<@NonNull UserActivityStategetSupportedUserActivityStates()

Set of supported UserActivityStates on this device.

toString

public @NonNull String toString()