getDailyStepGoal

abstract suspend fun getDailyStepGoal(): Int

Fetches the member’s daily step goal from the "smartwalking" program entitlement.

Calls com.advantahealth.api.programs.Programs.getAvailablePrograms and reads programData.dailyStepsGoal from the SmartWalking program entry. Returns 10,000 as the default if the program is not found or an error occurs.

Kotlin

val goal = AFCore.smartWalking().getDailyStepGoal()
binding.stepGoalText.text = "Daily goal: $goal steps"

Swift

let goal = try await AFCore.shared.smartWalking().getDailyStepGoal()
stepGoalLabel.text = "Daily goal: \(goal) steps"

Return

The daily step goal (defaults to 10,000).