Core Concepts
Actions and events
Trigger actions and listen to events on iOS
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Trigger actions and listen to events on iOS
RampKit.onEvent { event in
switch event.type {
case .flowStarted:
print("Flow started: \(event.flowId ?? "")")
case .screenShown:
print("Screen: \(event.screenId ?? "")")
case .purchaseCompleted:
// Forward to analytics
Analytics.track("purchase_completed", properties: event.properties)
default:
break
}
}