ads tracking
This commit is contained in:
28
Pods/PostHog/PostHog/DI.swift
generated
Normal file
28
Pods/PostHog/PostHog/DI.swift
generated
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// DI.swift
|
||||
// PostHog
|
||||
//
|
||||
// Created by Yiannis Josephides on 17/12/2024.
|
||||
//
|
||||
|
||||
// swiftlint:disable:next type_name
|
||||
enum DI {
|
||||
static var main = Container()
|
||||
|
||||
final class Container {
|
||||
// publishes global app lifecycle events
|
||||
lazy var appLifecyclePublisher: AppLifecyclePublishing = ApplicationLifecyclePublisher.shared
|
||||
// publishes global screen view events (UIViewController.viewDidAppear)
|
||||
lazy var screenViewPublisher: ScreenViewPublishing = ApplicationScreenViewPublisher.shared
|
||||
|
||||
#if os(iOS) || os(tvOS)
|
||||
// publishes global application events (UIApplication.sendEvent)
|
||||
lazy var applicationEventPublisher: ApplicationEventPublishing = ApplicationEventPublisher.shared
|
||||
#endif
|
||||
|
||||
#if os(iOS)
|
||||
// publishes global view layout events within a throttle interval (UIView.layoutSubviews)
|
||||
lazy var viewLayoutPublisher: ViewLayoutPublishing = ApplicationViewLayoutPublisher.shared
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user