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 registered device type, or null if not registered.

Link copied to clipboard

Whether automatic background sync is enabled.

Link copied to clipboard

ISO-8601 timestamp of the last successful sync, or null.

Link copied to clipboard

Inferred health permission status (iOS / watchOS). null on Android.

Link copied to clipboard

Current SmartWalking profile from server, or null if not yet fetched.

Link copied to clipboard

Apps and devices that have contributed step-count data (iOS / watchOS).

Functions

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