INNER CODE UNIT · Swift

setPrivacyCoverEnabled

khoadng/Boorusama · ios/Runner/AppPrivacyChannel.swift:33

  private func setPrivacyCoverEnabled(_ enabled: Bool) {
    self.enabled = enabled

    if enabled {
      guard !observersRegistered else { return }
      observersRegistered = true

      NotificationCenter.default.addObserver(
        self,
        selector: #selector(showPrivacyCover),
        name: UIApplication.willResignActiveNotification,
        object: nil
      )
      NotificationCenter.default.addObserver(
        self,
        selector: #selector(showPrivacyCover),
        name: UIApplication.didEnterBackgroundNotification,
        object: nil

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…