PassiveMonitoringCapabilities


class PassiveMonitoringCapabilities


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

Summary

Public constructors

PassiveMonitoringCapabilities(
    supportedDataTypesPassiveMonitoring: Set<DataType<*, *>>,
    supportedDataTypesPassiveGoals: Set<DataType<*, *>>,
    supportedHealthEventTypes: Set<HealthEvent.Type>,
    supportedUserActivityStates: Set<UserActivityState>
)

Public functions

open String

Public properties

Set<DataType<*, *>>

Set of supported DataTypes for goal callbacks on this device.

Set<DataType<*, *>>

Set of supported DataTypes for background capture on this device.

Set<HealthEvent.Type>

Set of supported HealthEvent.Types on this device.

Set<UserActivityState>

Set of supported UserActivityStates on this device.

Public constructors

PassiveMonitoringCapabilities

PassiveMonitoringCapabilities(
    supportedDataTypesPassiveMonitoring: Set<DataType<*, *>>,
    supportedDataTypesPassiveGoals: Set<DataType<*, *>>,
    supportedHealthEventTypes: Set<HealthEvent.Type>,
    supportedUserActivityStates: Set<UserActivityState>
)

Public functions

toString

open fun toString(): String

Public properties

supportedDataTypesPassiveGoals

Added in 1.0.0
val supportedDataTypesPassiveGoalsSet<DataType<*, *>>

Set of supported DataTypes for goal callbacks on this device.

supportedDataTypesPassiveMonitoring

Added in 1.0.0
val supportedDataTypesPassiveMonitoringSet<DataType<*, *>>

Set of supported DataTypes for background capture on this device.

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

supportedHealthEventTypes

Added in 1.0.0
val supportedHealthEventTypesSet<HealthEvent.Type>

Set of supported HealthEvent.Types on this device.

supportedUserActivityStates

Added in 1.0.0
val supportedUserActivityStatesSet<UserActivityState>

Set of supported UserActivityStates on this device.