Class UNUserNotificationCenter
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.usernotifications.UNUserNotificationCenter
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class UNUserNotificationCenter extends NSObject
- Since:
- Available in iOS 10.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UNUserNotificationCenter.UNUserNotificationCenterPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UNUserNotificationCenter()
protected
UNUserNotificationCenter(NSObject.Handle h, long handle)
protected
UNUserNotificationCenter(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
UNUserNotificationCenter
protected UNUserNotificationCenter()
-
UNUserNotificationCenter
protected UNUserNotificationCenter(NSObject.Handle h, long handle)
-
UNUserNotificationCenter
protected UNUserNotificationCenter(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getDelegate
public UNUserNotificationCenterDelegate getDelegate()
-
setDelegate
public void setDelegate(UNUserNotificationCenterDelegate v)
-
supportsContentExtensions
public boolean supportsContentExtensions()
-
requestAuthorization
public void requestAuthorization(UNAuthorizationOptions options, org.robovm.objc.block.VoidBlock2<java.lang.Boolean,NSError> completionHandler)
-
setNotificationCategories
public void setNotificationCategories(NSSet<UNNotificationCategory> categories)
-
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()
-
currentNotificationCenter
public static UNUserNotificationCenter currentNotificationCenter()
-
-