     NSNotificationCenter.defaultCenter().removeObserver(self)
   }
 
+  // MARK: - Private methods
   @objc private func applicationWillResignActiveNotification(notification: NSNotification) {
     willEnterBackgroundHandler?()
   }

/// UIApplicationDidBecomeActiveNotification
public final class ApplicationStateNotificationsManager: NSObject {

  public var willEnterBackgroundHandler: (Void -> Void)?
  public var didEnterForegroundHandler: (Void -> Void)?

  public override init() {
    super.init()
    subscribeAppStateNotifications()

                                   name: UIApplicationDidBecomeActiveNotification,
                                   object: nil)
  }
}
