Skip to main content

Application Settings

AFCore.applicationSettings() holds the app-level settings that are not tied to a single feature: program settings and membership status. Use it to configure screens the way the member's organization set them up.

What you can do​

  • Read program settings such as the visit dwell time.
  • Gate premium features on an active membership.
  • Build the "invite a colleague" message.

Key APIs​

CallWhat it is for
getActiveFitSettings()Program settings such as the visit dwell time
isMembershipActive()Whether the membership is active, as an AFResult
generateInviteColleagueInvitation()The invitation message for a colleague

Example​

lifecycleScope.launch {
val membership = AFCore.applicationSettings().isMembershipActive()
if (membership.status) showPremiumFeatures() else showMembershipMessage(membership.statusMessage)
}

Learn more​

See the API Reference. Complete integration guides are in AIDE Docs.