ProgramFeature

class ProgramFeature(var name: String? = null, var activated: Boolean = false)

ProgramFeature — represents a feature inside a ProgramEntitlement.

Features are specific capabilities within a program. For example, the GymVisits program may include:

  • Check-In

  • Automatic Visits

  • Self-Report

  • Facilities

Retrieved via com.advantahealth.api.programs.Programs.getAvailableFeatures. Features control granularity inside a program (e.g., GymVisits → Self-Report).

Constructors

Link copied to clipboard
constructor(name: String? = null, activated: Boolean = false)

Properties

Link copied to clipboard

true when the feature is enabled for the signed-in member. Defaults to false.

Link copied to clipboard
var name: String?

Feature name (e.g., "Automatic Visits", "Facilities"); null if not reported.

Functions

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