get Diagnostics
Returns a comprehensive diagnostic snapshot of SmartWalking state.
Aggregates data from multiple sources into a single SmartWalkingDiagnostics object:
Server profile (getRegisteredProfile)
Local auto-sync state (isAutoSyncEnabled)
Step data sources (getStepDataSources)
Registered device type and last sync timestamp from preferences
Individual sub-queries that fail are logged and defaulted (e.g. null profile, empty sources list) — this method does not throw if a sub-query fails.
Kotlin
val diag = AFCore.smartWalking().getDiagnostics()
Log.d("SmartWalking", diag.toString())
// SmartWalkingDiagnostics {
// profile = SmartWalkingProfile(isConnected=true, ...)
// isAutoSyncEnabled = true
// permissionStatus = AUTHORIZED
// stepDataSources = [HealthKitDataSource(name=Apple Watch, ...)]
// deviceType = IOS
// lastSyncTimestamp = 2026-02-22T10:30:00Z
// }Content copied to clipboard
Swift
let diag = try await AFCore.shared.smartWalking().getDiagnostics()
print(diag)Content copied to clipboard
Return
A SmartWalkingDiagnostics snapshot.