/
sberpay
/
AgeGate-iOS
Обзор
Документация
Войти
/
sberpay
/
AgeGate-iOS
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
develop
AgeGateExample/AppDelegate.swift
34 строки
1 KB
SergeyGladkiy
[0.2.0] БДСЧ сценарий
30 июл 2026, 21:57
30 июл 2026, 21:57
cbcdfcb
Код
Авторство
О чём код?
// // AppDelegate.swift // SPaySdk // // Created by Alexander Ipatov on 07.11.2022. // import UIKit import AgeGateSDKDEBUG @main final class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? private lazy var startupService = StartupService() func application(_ application: UIApplication, didFinishLaunchingWithOptions options: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { let window = UIWindow(frame: UIScreen.main.bounds) self.window = window startupService.setupInitialState(with: window) return true } /// Точка возврата из внешнего приложения. Партнёр обязан её проставить, /// иначе сценарий зависнет после ухода в СБОЛ или Госуслуги. func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool { AgeGate.handleOpen(url) } }