mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 11:01:07 +00:00
43 lines
1.2 KiB
Objective-C
43 lines
1.2 KiB
Objective-C
//
|
|
// NDNotificationCenterHackery.m
|
|
// NearDrop
|
|
//
|
|
// Created by Grishka on 10.04.2023.
|
|
//
|
|
|
|
#import <UserNotifications/UserNotifications.h>
|
|
#import <AppKit/AppKit.h>
|
|
#import "NDNotificationCenterHackery.h"
|
|
|
|
@interface UNMutableNotificationCategory : UNNotificationCategory
|
|
@property(copy) NSString *actionsMenuTitle;
|
|
@property(copy) UNNotificationAction *alternateAction;
|
|
@property(copy) NSArray *minimalActions;
|
|
@property unsigned long long backgroundStyle;
|
|
@property(copy) NSArray *actions;
|
|
@end
|
|
|
|
@interface UNNotificationIcon : NSObject
|
|
+ (id)iconForApplicationIdentifier:(id)arg1;
|
|
+ (id)iconAtPath:(id)arg1;
|
|
+ (id)iconNamed:(id)arg1;
|
|
@end
|
|
|
|
@interface UNMutableNotificationContent (NDPrivateAPIs)
|
|
@property BOOL hasDefaultAction;
|
|
@property(copy) NSString *defaultActionTitle;
|
|
@property(copy) NSString *header;
|
|
@property (assign,nonatomic) BOOL shouldDisplayActionsInline;
|
|
@property (assign,nonatomic) BOOL shouldShowSubordinateIcon;
|
|
@property (nonatomic,copy) NSString * accessoryImageName;
|
|
@property(copy) UNNotificationIcon *icon;
|
|
@end
|
|
|
|
@implementation NDNotificationCenterHackery
|
|
|
|
+ (void)removeDefaultAction:(UNMutableNotificationContent*) content{
|
|
content.hasDefaultAction=false;
|
|
}
|
|
|
|
@end
|