HealthPermissionStatus

Represents the inferred read-permission status for health data tracking.

On iOS / watchOS (HealthKit), Apple does not expose whether the user granted or denied individual read permissions. The status is inferred by combining two signals: whether the authorization dialog has been presented, and whether a step-count query over the past 7 days returns any data.

On Android (Health Connect), permissions are checked directly via the granted-permissions set. The mapping is:

Entries

Link copied to clipboard

The permission dialog has not yet been shown to the user.

Link copied to clipboard

Permission is effectively granted — health data is accessible.

Link copied to clipboard

Permission was likely denied — health data is not accessible.

Link copied to clipboard

The health platform is not available on this device.

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.