File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 14
14
#import " EBMuteDetector.h"
15
15
16
16
NSString *const EBBannerViewDidClick = @" EBBannerViewDidClick" ;
17
+ NSString *EBBannerViewTimeText = @" 现在" ; // 默认弹窗时间 default banner time
17
18
18
19
@implementation EBForeNotification
19
20
@@ -45,6 +46,10 @@ +(void)handleRemoteNotification:(NSDictionary*)userInfo soundID:(int)soundID isI
45
46
}
46
47
}
47
48
49
+ +(void )setBannerViewTimeText : (NSString *)timeText {
50
+ EBBannerViewTimeText = timeText;
51
+ }
52
+
48
53
#pragma mark - private
49
54
50
55
+(void )showBannerWithUserInfo : (NSDictionary *)userInfo soundID : (int )soundID isIos10 : (BOOL )isIos10 {
Original file line number Diff line number Diff line change 6
6
#import < Foundation/Foundation.h>
7
7
8
8
extern NSString *const EBBannerViewDidClick; // 监听点击弹窗的事件
9
+ extern NSString *EBBannerViewTimeText; // 默认弹窗时间 default banner time
9
10
10
11
@interface EBForeNotification : NSObject
11
12
+(void )handleRemoteNotification : (NSDictionary *)userInfo soundID : (int )soundID ;
12
13
+(void )handleRemoteNotification : (NSDictionary *)userInfo customSound : (NSString *)soundName ;
13
14
+(void )handleRemoteNotification : (NSDictionary *)userInfo soundID : (int )soundID isIos10 : (BOOL )isIos10 ;
14
15
+(void )handleRemoteNotification : (NSDictionary *)userInfo customSound : (NSString *)soundName isIos10 : (BOOL )isIos10 ;
16
+ +(void )setBannerViewTimeText : (NSString *)timeText ;
15
17
@end
16
18
17
- static NSString *const EBBannerViewTimeText = @" 现在" ; // 默认弹窗时间 default banner time
18
-
19
-
20
19
/*
21
20
22
21
⭐1.在 AppDelegate.m 中,调用示例如下:
@@ -189,4 +188,4 @@ static NSString *const EBBannerViewTimeText = @"现在"; //默认弹窗时间
189
188
4095 - - Vibrate There was no category for this sound before 2.2.
190
189
In the SDK this is the constant kSystemSoundID_Vibrate.
191
190
192
- */
191
+ */
You can’t perform that action at this time.
0 commit comments