1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface NCPushNotification : NSObject
- + (instancetype)shared;
- @property (nonatomic, strong) NSString *pushKitToken;
- - (void)pushNotification;
- - (void)applicationdidReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler;
- - (void)unsubscribingNextcloudServerPushNotification:(NSString *)account urlBase:(NSString *)urlBase user:(NSString *)user withSubscribing:(BOOL)subscribing;
- - (void)removeNotificationWithNotificationId:(NSInteger)notificationId usingDecryptionKey:(NSData *)key;
- - (void)registerForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
- @end
- NS_ASSUME_NONNULL_END
|