Integrate Helium into your iOS app
Custom User ID and Custom User Traits
initialize
method or by using Helium.shared.overrideUserId
. Ideally this will be called before initialize
is called to ensure consistency in analytics events.Checking Download Status
Helium.shared.getDownloadStatus()
method. This method returns a value of type HeliumFetchedConfigStatus
, which is defined as follows:Helium.shared.paywallsLoaded()
.Get Paywall Info By Trigger
Helium.shared.getPaywallInfo(trigger: String)
which returns:HeliumPaywallDelegate
or use one of our pre-built delegates. This class is responsible for handling the purchase logic for your paywalls and handling Helium Events.
onHeliumPaywallEvent
:Helium.shared.presentUpsell(trigger:)
when you want to show the paywall. For example:
.triggerUpsell
view modifier from any SwiftUI view:
Helium.shared.upsellViewForTrigger
. This method takes a trigger and returns the paywall as an AnyView
.