HealthConnectAvailabilityStatus

Represents the availability status of the Health Connect SDK on the device.

Use com.advantahealth.api.health.AFHealthTracking.getSdkAvailabilityStatus to obtain this value.

Handling each status in your UI:

  • AVAILABLE: Health Connect is ready. Proceed with permission requests and data operations.

  • PROVIDER_UPDATE_REQUIRED: Show a prompt encouraging the user to update Health Connect (use com.advantahealth.api.health.AFHealthTracking.installOrUpdateHealthConnect to redirect to the Play Store).

  • UNAVAILABLE: Hide any Health Connect integration points in the UI.

Entries

Link copied to clipboard

Health Connect SDK is available and ready to use.

Link copied to clipboard

Health Connect provider is not installed or needs to be updated.

Link copied to clipboard

Health Connect SDK is unavailable on this device (e.g., Android version too low).

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.