another.im-ios/Monal/Classes/MLNotificationQueue.h

31 lines
853 B
C
Raw Normal View History

2024-11-18 14:53:52 +00:00
//
// 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