another.im-ios/Monal/Classes/MLNotificationQueue.h
2024-11-18 15:53:52 +01:00

31 lines
853 B
Objective-C

//
// MLNotificationQueue.h
// Monal
//
// Created by Thilo Molitor on 03.04.21.
// Copyright © 2020 Monal.im. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MLConstants.h"
NS_ASSUME_NONNULL_BEGIN
@interface MLNotificationQueue : NSObject
+(void) queueNotificationsInBlock:(monal_void_block_t) block onQueue:(NSString*) queueName;
-(NSUInteger) flush;
-(NSUInteger) clear;
+(id) currentQueue;
-(void) postNotificationName:(NSNotificationName) notificationName object:(id _Nullable) notificationObject userInfo:(id _Nullable) notificationUserInfo;
-(void) postNotificationName:(NSNotificationName) notificationName object:(id _Nullable) notificationObject;
-(void) postNotification:(NSNotification* _Nonnull) notification;
@property (readonly, strong) NSString* name;
-(NSString*) description;
@end
NS_ASSUME_NONNULL_END