12using YandexMobileAds.Common;
13using YandexMobileAds.Platforms;
17 internal class AppStateObserver
19 public static event EventHandler<AppStateChangedEventArgs> OnAppStateChanged
21 add { _client.OnAppStateChanged += value; }
22 remove { _client.OnAppStateChanged -= value; }
25 private static readonly IAppStateObserverClient _client;
27 static AppStateObserver()
29 _client = YandexMobileAdsClientFactory.BuildAppStateObserverClient();