mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
17 lines
487 B
Swift
17 lines
487 B
Swift
import Foundation
|
|
import SwiftSignalKit
|
|
import UIKit
|
|
|
|
public final class TelegramApplicationContext {
|
|
public let openUrl: (String) -> Void
|
|
public let getTopWindow: () -> UIWindow?
|
|
|
|
let sharedChatMediaInputNode = Atomic<ChatMediaInputNode?>(value: nil)
|
|
let mediaManager = MediaManager()
|
|
|
|
public init(openUrl: @escaping (String) -> Void, getTopWindow: @escaping () -> UIWindow?) {
|
|
self.openUrl = openUrl
|
|
self.getTopWindow = getTopWindow
|
|
}
|
|
}
|