currentUserNotificationSettings property

  1. @Deprecated('Use UserNotifications Framework\'s -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] and -[UNUserNotificationCenter getNotificationCategoriesWithCompletionHandler:]')
UIUserNotificationSettings$1? get currentUserNotificationSettings

currentUserNotificationSettings

Implementation

@Deprecated(
  'Use UserNotifications Framework\'s -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] and -[UNUserNotificationCenter getNotificationCategoriesWithCompletionHandler:]',
)
UIUserNotificationSettings$1? get currentUserNotificationSettings {
  final _$$ref = object$.ref;
  objc.checkOsVersionInternal('UIApplication.currentUserNotificationSettings', iOS: (false, (8, 0, 0)));
  final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_currentUserNotificationSettings);
  return $ret.address == 0 ? null : UIUserNotificationSettings$1.fromPointer($ret, retain: true, release: true);
}