PresenceSettings

class PresenceSettings(val dwellTimeInSeconds: String? = null)

Presence-detection settings within the Active Fit program configuration.

Surfaced as part of ProgramSettings on the ActiveFitConfig returned by com.advantahealth.api.settings.ApplicationSettings.getActiveFitSettings. "Presence" is the proximity-based facility-detection mechanism (distinct from the geofence, beacon, and check-in mechanisms, which have their own sibling settings types). It controls how long a member must remain present before a visit is registered.

Constructors

Link copied to clipboard
constructor(dwellTimeInSeconds: String? = null)

Properties

Link copied to clipboard

The required presence dwell time, in seconds, encoded as a String (a numeric string such as "300"). Unlike the sibling GeofenceSettings, BeaconSettings, and CheckinSettings dwell fields — which are Int — the backend delivers this value as a string, so it is preserved as-is here without parsing. May be an empty string when the backend does not supply a value, and null when no presence configuration is present. Parse to a number before arithmetic.

Functions

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