VirtualFitnessPartner

Known virtual-fitness partner integrations. The enum carries the static, well-known metadata for each partner — display name, marketing website, App Store + Play Store listings, Android package candidates, and iOS deep-link schemes — so consumers don't have to hard-code app identifiers in their own apps.

Use defaults to materialise a VirtualFitnessSignUpDetails seeded with the static catalog when the backend hasn't populated those fields, then overwrite VirtualFitnessSignUpDetails.signUpUrl / VirtualFitnessSignUpDetails.promoCode from the live API response:

val live = AFCore.virtualFitness().getNEOUSignUpDetails()
val merged = VirtualFitnessPartner.NEOU.merged(live)
launchPartner(merged.androidPackageNames!!, merged.websiteUrl!!)

Entries

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun defaults(signUpUrl: String? = null, redirectUrl: String? = null, promoCode: String? = null): VirtualFitnessSignUpDetails

Build a VirtualFitnessSignUpDetails preloaded with this partner's catalog. Defaults can then be overwritten with the live VirtualFitnessSignUpDetails.signUpUrl / VirtualFitnessSignUpDetails.promoCode from the backend.

Link copied to clipboard

Merge this partner's static catalog into an existing details object — useful when the backend only returns VirtualFitnessSignUpDetails.signUpUrl / VirtualFitnessSignUpDetails.redirectUrl / VirtualFitnessSignUpDetails.promoCode and the consumer wants the app/scheme metadata too. Backend-provided values win; nulls are filled.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.