AFCore
AFCore is the Advanta Health SDK for Android, iOS and watchOS: member sign-in, activities and gym visits, step tracking, places, content and rewards, through one Kotlin Multiplatform API. Examples are shown in Kotlin and Swift.
Start here
AFCore: the entry point. Call
initializeonce, then reach each feature through its accessor, such asAFCore.authentication().AFCoreConfig: the configuration builder.
Authentication: sign-in, the session and logout.
Locations: favorite places, map search, nominations, problem reports and automatic gym visits.
Activities: the member's activity history.
SmartWalking: step tracking with Health Connect and HealthKit.
Content: bottom navigation, banners and the Explore menu.
ActivePerks: rewards, gift cards and cash back.
Most calls are suspend functions. Failures arrive as AFException, whose message is safe to show a member. facilities(), map() and the heartbeat API are deprecated in favor of Locations, which lists each replacement.
AFCore is the Advanta Health SDK for Android, iOS and watchOS: member sign-in, activities and gym visits, step tracking, places, content and rewards, through one Kotlin Multiplatform API. Examples are shown in Kotlin and Swift.
Start here
AFCore: the entry point. Call
initializeonce, then reach each feature through its accessor, such asAFCore.authentication().AFCoreConfig: the configuration builder.
Authentication: sign-in, the session and logout.
Locations: favorite places, map search, nominations, problem reports and automatic gym visits.
Activities: the member's activity history.
SmartWalking: step tracking with Health Connect and HealthKit.
Content: bottom navigation, banners and the Explore menu.
ActivePerks: rewards, gift cards and cash back.
Most calls are suspend functions. Failures arrive as AFException, whose message is safe to show a member. facilities(), map() and the heartbeat API are deprecated in favor of Locations, which lists each replacement.
AFCore is the Advanta Health SDK for Android, iOS and watchOS: member sign-in, activities and gym visits, step tracking, places, content and rewards, through one Kotlin Multiplatform API. Examples are shown in Kotlin and Swift.
Start here
AFCore: the entry point. Call
initializeonce, then reach each feature through its accessor, such asAFCore.authentication().AFCoreConfig: the configuration builder.
Authentication: sign-in, the session and logout.
Locations: favorite places, map search, nominations, problem reports and automatic gym visits.
Activities: the member's activity history.
SmartWalking: step tracking with Health Connect and HealthKit.
Content: bottom navigation, banners and the Explore menu.
ActivePerks: rewards, gift cards and cash back.
Most calls are suspend functions. Failures arrive as AFException, whose message is safe to show a member. facilities(), map() and the heartbeat API are deprecated in favor of Locations, which lists each replacement.
AFCore is the Advanta Health SDK for Android, iOS and watchOS: member sign-in, activities and gym visits, step tracking, places, content and rewards, through one Kotlin Multiplatform API. Examples are shown in Kotlin and Swift.
Start here
AFCore: the entry point. Call
initializeonce, then reach each feature through its accessor, such asAFCore.authentication().AFCoreConfig: the configuration builder.
Authentication: sign-in, the session and logout.
Locations: favorite places, map search, nominations, problem reports and automatic gym visits.
Activities: the member's activity history.
SmartWalking: step tracking with Health Connect and HealthKit.
Content: bottom navigation, banners and the Explore menu.
ActivePerks: rewards, gift cards and cash back.
Most calls are suspend functions. Failures arrive as AFException, whose message is safe to show a member. facilities(), map() and the heartbeat API are deprecated in favor of Locations, which lists each replacement.
Packages
The entry point and SDK-wide types: AFCore, its configuration, session state, logging, realms and errors.