Headless Functionality (iOS)
Headless Functionality (iOS)
lucraClient.api🎯 When to Use Headless APIs
✅ Requirements
🧩 Error Handling Pattern
🧠 Common Headless Operations
✔️ Shared Methods
✔️ Games You Play (GYP)
✔️ Tournaments
🔄 Combining Headless + Flows
🛰 Location Errors
📡 API Call Requirements
📊 Recommended App Architecture
1. A shared LucraClient instance
2. A view model that calls headless functions
3. Presentation logic hooked to LucraFlow enum
LucraFlow enum4. Event listener
✔️ Integration Checklist
❌ Error Handling
Here are the list of possible errors returned in Result types as well as recommended steps for handling them.
Result types as well as recommended steps for handling them.Error Types
GamesMatchupError / MatchupError / TournamentError
GamesMatchupError / MatchupError / TournamentErrorUserStateError
UserStateErrorLocationError
LocationErrorError Handling Example
Last updated
