-
Notifications
You must be signed in to change notification settings - Fork 3
/
MCCUserNotification.h
66 lines (49 loc) · 2.3 KB
/
MCCUserNotification.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
//
// MCCUserNotification.h
// Tealeaves
//
// Created by Scott Little on 28/11/13.
// Copyright (c) 2013 Little Known Software. All rights reserved.
//
#import <Foundation/Foundation.h>
#include "MCCCommonHeader.h"
@interface MCC_PREFIXED_NAME(UserNotification) : NSObject
@property (copy) NSString *title;
@property (copy) NSString *subtitle;
//@property (copy) NSString *informativeText;
//@property (copy) NSString *actionButtonTitle;
//@property (copy) NSDictionary *userInfo;
//@property (copy) NSDate *deliveryDate;
//@property (copy) NSTimeZone *deliveryTimeZone;
//@property (copy) NSDateComponents *deliveryRepeatInterval;
//@property (readonly) NSDate *actualDeliveryDate;
//@property (readonly, getter=isPresented) BOOL presented;
//@property (readonly, getter=isRemote) BOOL remote;
//@property (copy) NSString *soundName;
@property BOOL hasActionButton;
//@property (readonly) NSUserNotificationActivationType activationType;
//@property (copy) NSString *otherButtonTitle;
@end
@interface MCC_PREFIXED_NAME(UserNotificationCenter) : NSObject
+ (instancetype)defaultUserNotificationCenter;
//@property (assign) id <NSUserNotificationCenterDelegate> delegate;
//@property (copy) NSArray *scheduledNotifications;
//
//- (void)scheduleNotification:(NSUserNotification *)notification;
//- (void)removeScheduledNotification:(NSUserNotification *)notification;
//@property (readonly) NSArray *deliveredNotifications;
- (void)deliverNotification:(MCC_PREFIXED_NAME(UserNotification) *)notification;
//- (void)removeDeliveredNotification:(NSUserNotification *)notification;
//- (void)removeAllDeliveredNotifications;
@end
@protocol MCC_PREFIXED_NAME(UserNotificationCenterDelegate) <NSObject>
@optional
//- (void)userNotificationCenter:(NSUserNotificationCenter *)center didDeliverNotification:(NSUserNotification *)notification;
//
//- (void)userNotificationCenter:(NSUserNotificationCenter *)center didActivateNotification:(NSUserNotification *)notification;
//
//- (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification;
@end
@interface MCC_PREFIXED_NAME(UserNoteOperation) : NSOperation
- (instancetype)initWithUserNotification:(MCC_PREFIXED_NAME(UserNotification) *)aNotification notificationCenter:(MCC_PREFIXED_NAME(UserNotificationCenter) *)aCenter;
@end