-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathNotificationManager.h
40 lines (35 loc) · 1.3 KB
/
NotificationManager.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
//
// NotificationManager.h
//
// Created by Nihal Ahmed on 12-03-16.
// Copyright (c) 2012 NABZ Software. All rights reserved.
//
//Notification appearance option
#define kNotificationDefaultDuration 2.5f
#define kNotificationOffset 10.0f
#define kNotificationBackgroundColor [UIColor blackColor]
#define kNotificationBorderColor [UIColor clearColor]
#define kNotificationTextColor [UIColor whiteColor]
#define kNotificationFontName @"HelveticaNeue-Bold"
#define kNotificationFontSize 14.0f
#define kNotificationIconSize 24.0f
#define kNotificationPadding 10.0f
#define kNotificationCornerRadius 3.0f
#define kNotificationBorderWidth 3.0f
#define kNotificationMaxWidth 480.0f
//Notification style types
typedef enum {
NotificationStyleFadeInBottom,
NotificationStyleFadeInCenter,
NotificationStyleFadeInTop,
NotificationStyleSlideInBottom,
NotificationStyleSlideInTop,
NotificationStyleZoomInBottom,
NotificationStyleZoomInCenter,
NotificationStyleZoomInTop,
NotificationStyleStatusBar
} NotificationStyle;
//Notification Manager Singleton
@interface NotificationManager : NSObject
+ (void)notifyText:(NSString *)text icon:(NSString *)icon style:(NotificationStyle)style duration:(NSTimeInterval)duration target:(id)target selector:(SEL)selector showImmediately:(BOOL)showImmediately;
@end