The Onside Delegate
Customize OnsideKit with OnsideDelegate — host window scene, per-screen theme override, login routing, and a pre-login region hint.
protocol OnsideDelegate: AnyObject {
@MainActor func onside(hostWindowSceneForScreen screen: OnsideScreen) -> UIWindowScene?
@MainActor func onside(uiThemeOverrideForScreen screen: OnsideScreen) -> OnsideUIThemeMode?
@MainActor func onsideShouldForceLocalLoginMethods() -> Bool
@MainActor func onsideDefaultCountryCodeAssumption() -> String?
}@main
final class AppDelegate: UIResponder, UIApplicationDelegate, OnsideDelegate {
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
Onside.initialize()
Onside.delegate = self
return true
}
}OnsideScreen
Host window scene
Per-screen theme override
Force in-SDK login
Pre-login region hint
Last updated
Was this helpful?