Class UNUserNotificationCenter

  • All Implemented Interfaces:
    NSObjectProtocol, org.robovm.objc.ObjCProtocol

    public class UNUserNotificationCenter
    extends NSObject
    Since:
    Available in iOS 10.0 and later.
    • Constructor Detail

      • UNUserNotificationCenter

        protected UNUserNotificationCenter()
      • UNUserNotificationCenter

        protected UNUserNotificationCenter​(NSObject.Handle h,
                                           long handle)
      • UNUserNotificationCenter

        protected UNUserNotificationCenter​(NSObject.SkipInit skipInit)
    • Method Detail

      • supportsContentExtensions

        public boolean supportsContentExtensions()
      • requestAuthorization

        public void requestAuthorization​(UNAuthorizationOptions options,
                                         org.robovm.objc.block.VoidBlock2<java.lang.Boolean,​NSError> completionHandler)
      • getNotificationCategories

        public void getNotificationCategories​(org.robovm.objc.block.VoidBlock1<NSSet<UNNotificationCategory>> completionHandler)
      • getNotificationSettings

        public void getNotificationSettings​(org.robovm.objc.block.VoidBlock1<UNNotificationSettings> completionHandler)
      • addNotificationRequest

        public void addNotificationRequest​(UNNotificationRequest request,
                                           org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
      • getPendingNotificationRequests

        public void getPendingNotificationRequests​(org.robovm.objc.block.VoidBlock1<NSArray<UNNotificationRequest>> completionHandler)
      • removePendingNotificationRequests

        public void removePendingNotificationRequests​(NSArray<NSString> identifiers)
      • removeAllPendingNotificationRequests

        public void removeAllPendingNotificationRequests()
      • getDeliveredNotifications

        public void getDeliveredNotifications​(org.robovm.objc.block.VoidBlock1<NSArray<UNNotification>> completionHandler)
      • removeDeliveredNotifications

        public void removeDeliveredNotifications​(NSArray<NSString> identifiers)
      • removeAllDeliveredNotifications

        public void removeAllDeliveredNotifications()