forked from limneos/libbulletin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimports.h
149 lines (121 loc) · 5.29 KB
/
imports.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#import <UIKit/UIKit.h>
#pragma mark - UIKit
@class SBNCNotificationDispatcher;
@interface UIApplication (ios10additions)
- (SBNCNotificationDispatcher *)notificationDispatcher;
@end
@interface UIImage ()
+ (id)imageNamed:(NSString *)named inBundle:(NSBundle *)bundle;
- (id)imageScaledToSize:(CGSize)size cornerRadius:(CGFloat)cornerRadius;
- (id)_imageScaledToProportion:(CGFloat)proportion interpolationQuality:(CGInterpolationQuality)quality;
- (id)imageResizedTo:(CGSize)size preserveAspectRatio:(BOOL)preserve;
@end
#pragma mark - ToneLibrary.framework
@interface TLAlertConfiguration : NSObject
- (id)initWithType:(NSInteger)type;
- (void)setExternalToneFileURL:(NSURL *)aURL;
@end
#pragma mark - BulletinBoard.framework
@interface BBSectionIconVariant : NSObject
- (void)setImageData:(NSData *)data;
@end
@interface BBSectionIcon : NSObject
- (void)addVariant:(BBSectionIconVariant *)variant;
@end
@protocol BBObserverDelegate <NSObject>
- (void)observer:(id)arg1 addBulletin:(id)bulletin forFeed:(NSUInteger)feed;
- (void)observer:(id)arg1 addBulletin:(id)bulletin forFeed:(NSInteger)feed playLightsAndSirens:(BOOL)playLightsAndSirens withReply:(/*^block*/id)reply;
- (void)observer:(id)arg1 modifyBulletin:(id)bulletin;
- (void)observer:(id)arg1 modifyBulletin:(id)bulletin forFeed:(NSUInteger)feed;
- (void)observer:(id)arg1 removeBulletin:(id)bulletin;
- (void)observer:(id)arg1 removeBulletin:(id)bulletin forFeed:(NSUInteger)feed;
@end
@interface BBObserver: NSObject
- (void)_setAttachmentImage:(id)image forKey:(id)aKey forBulletinID:(NSString *)bulletinID;
- (void)_setAttachmentSize:(CGSize)size forKey:(id)aKey forBulletinID:(NSString *)bulletinID;
@end
@interface BBAction : NSObject
@property (nonatomic,assign) int actionType;
@property (nonatomic,retain) NSURL * launchURL;
+ (id)actionWithCallblock:(id)callblock;
+ (id)actionWithLaunchBundleID:(NSString *)id callblock:(id)aBlock;
+ (id)actionWithLaunchURL:(NSURL *)aURL callblock:(id)aBlock;
@end
@interface BBSound : NSObject
- (id)initWithSystemSoundID:(NSUInteger)systemSoundID behavior:(NSUInteger)behavior vibrationPattern:(id)pattern;
- (id)initWithSystemSoundPath:(id)systemSoundPath behavior:(NSUInteger)behavior vibrationPattern:(id)pattern;
- (id)initWithToneAlert:(NSInteger)toneAlert;
- (id)initWithToneAlertConfiguration:(TLAlertConfiguration *)toneAlertConfiguration;
- (void)setSoundType:(NSInteger)type;
- (void)setSystemSoundID:(NSUInteger)systemSoundID;
@end
@interface BBAttachments : NSObject
- (void)setPrimaryType:(NSInteger)type;
@end
@interface BBAttachmentMetadata
- (id)_initWithUUID:(id)uuid type:(NSInteger)type URL:(NSURL *)aURL;
@end
@interface BBBulletinRequest : NSObject
@property (nonatomic, retain) NSString * bulletinID;
@property (nonatomic, retain) NSString * title;
//@property (nonatomic, retain) NSString * subtitle;
@property (nonatomic, retain) NSString * message;
@property (nonatomic, retain) NSString * sectionID;
@property (nonatomic, retain) NSString * section;
@property (nonatomic, retain) BBSound * sound;
//@property (nonatomic, retain) NSDictionary * context;
//@property (nonatomic, retain) id unlockActionLabel;
@property (nonatomic, retain) NSDate * date;
@property (nonatomic, retain) NSDate * lastInterruptDate;
//@property (nonatomic, retain) NSDate * recencyDate;
//@property (nonatomic, retain) NSDate * endDate;
//@property (nonatomic, retain) NSDate * publicationDate;
//@property (nonatomic, assign) BOOL hasEventDate;
@property (nonatomic, assign) BOOL clearable;
//@property (nonatomic, assign) int dateFormatStyle;
//@property (nonatomic, assign) int messageNumberOfLines;
//@property (nonatomic, assign) int sectionSubtype;
@property (nonatomic, retain) BBAction * defaultAction;
//@property (nonatomic, copy) BBAction * alternateAction;
//@property (nonatomic, copy) BBAction * acknowledgeAction;
//@property (nonatomic, copy) BBAction * snoozeAction;
//@property (nonatomic, retain) BBAction * raiseAction;
//@property (nonatomic, assign) BOOL showsMessagePreview;
//@property (nonatomic, assign) BOOL suppressesMessageForPrivacy;
//@property (nonatomic, retain) NSString * unlockActionLabelOverride;
@property (nonatomic, retain) NSString * bulletinVersionID;
//@property (nonatomic, retain) NSTimeZone * timeZone;
//@property (nonatomic, assign) BOOL dateIsAllDay;
@property (nonatomic, retain) BBAttachments * attachments;
@property (nonatomic, retain) NSString * recordID;
@property (nonatomic, retain) NSString * publisherBulletinID;
- (void)setPrimaryAttachment:(BBAttachmentMetadata *)attachmentMetadata;
@end
@interface BBBulletin : BBBulletinRequest
@end
#pragma mark - UserNotificationsUIKit
@interface NCBulletinNotificationSource : NSObject
- (BBObserver *)observer;
@end
#pragma mark - SpringBoard
@interface SBLockScreenManager : NSObject
+ (id)sharedInstance;
+ (id)sharedInstanceIfExists;
- (BOOL)isUILocked;
- (id)lockScreenViewController;
@end
@interface SBAwayController : NSObject
+ (id)sharedAwayController;
- (BOOL)isLocked;
@end
@interface SBAwayBulletinListController : NSObject <BBObserverDelegate>
+ (id)sharedInstance;
- (id)awayView;
@end
@interface SBBulletinBannerController : NSObject <BBObserverDelegate>
@end
@interface SBLockScreenNotificationListController : NSObject <BBObserverDelegate>
@end
@interface SBNCNotificationDispatcher : NSObject
- (NCBulletinNotificationSource *)notificationSource;
@end