Bridge communication
Exchange data between your app and RampKit to power dynamic experiences.- Send context in real time via
setUserAttributes - Read variables to adapt UI around the flow
- Subscribe to events to react to user actions
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Communicating between app and RampKit on iOS
setUserAttributesRampKit.setUserAttributes(["balance": 25.0, "currency": "USD"])
let title = RampKit.variable("paywallTitle") ?? "Go Pro"
RampKit.onEvent { event in
if event.type == .flowCompleted {
// Unlock feature
FeatureFlags.shared.set("pro", enabled: true)
}
}