Skip to content

Instantly share code, notes, and snippets.

@suraphanL
Created September 11, 2016 16:45
Show Gist options
  • Save suraphanL/57f831b60eec9be2efe3f8574ff7e79d to your computer and use it in GitHub Desktop.
Save suraphanL/57f831b60eec9be2efe3f8574ff7e79d to your computer and use it in GitHub Desktop.
UNUserNotificationCenter.current().getNotificationSettings { (settings) in // ... }
open class UNNotificationSettings : NSObject, NSCopying, NSSecureCoding {
open var authorizationStatus: UNAuthorizationStatus { get }
open var soundSetting: UNNotificationSetting { get }
open var badgeSetting: UNNotificationSetting { get }
open var alertSetting: UNNotificationSetting { get }
open var notificationCenterSetting: UNNotificationSetting { get }
open var lockScreenSetting: UNNotificationSetting { get }
open var carPlaySetting: UNNotificationSetting { get }
open var alertStyle: UNAlertStyle { get }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment