SmartWalkingDiagnostics

data class SmartWalkingDiagnostics(val profile: SmartWalkingProfile?, val isAutoSyncEnabled: Boolean, val permissionStatus: HealthPermissionStatus?, val stepDataSources: List<HealthKitDataSource>, val deviceType: DeviceType?, val lastSyncTimestamp: String?)

A comprehensive diagnostic snapshot of the SmartWalking module state.

Obtain an instance via SmartWalking.getDiagnostics().

Swift

Task {
let diag = try await AFCore.shared.smartWalking().getDiagnostics()
print(diag)
}

Constructors

Link copied to clipboard
constructor(profile: SmartWalkingProfile?, isAutoSyncEnabled: Boolean, permissionStatus: HealthPermissionStatus?, stepDataSources: List<HealthKitDataSource>, deviceType: DeviceType?, lastSyncTimestamp: String?)

Properties

Link copied to clipboard

The device type registered with the backend, or null if not registered.

Link copied to clipboard

true when automatic background step sync is currently enabled.

Link copied to clipboard

ISO-8601 timestamp of the last successful step sync, or null if no sync has succeeded.

Link copied to clipboard

Inferred health read-permission status on iOS / watchOS; null on Android, where Health Connect does not expose an equivalent probe.

Link copied to clipboard

The current SmartWalking profile fetched from the server, or null if it has not been fetched yet.

Link copied to clipboard

Apps and devices that have contributed step-count data (iOS / watchOS); empty on Android or when none are found.

Functions

Link copied to clipboard
open override fun toString(): String