|
9 | 9 | * Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved.
|
10 | 10 | */
|
11 | 11 |
|
12 |
| -#define JPUSH_VERSION_NUMBER 3.2.8 |
| 12 | +#define JPUSH_VERSION_NUMBER 3.3.4 |
13 | 13 |
|
14 | 14 | #import <Foundation/Foundation.h>
|
15 | 15 |
|
|
22 | 22 | @class UNNotification;
|
23 | 23 | @protocol JPUSHRegisterDelegate;
|
24 | 24 | @protocol JPUSHGeofenceDelegate;
|
| 25 | +@protocol JPushInMessageDelegate; |
25 | 26 |
|
26 | 27 | typedef void (^JPUSHTagsOperationCompletion)(NSInteger iResCode, NSSet *iTags, NSInteger seq);
|
27 | 28 | typedef void (^JPUSHTagValidOperationCompletion)(NSInteger iResCode, NSSet *iTags, NSInteger seq, BOOL isBind);
|
@@ -219,12 +220,27 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
|
219 | 220 |
|
220 | 221 | + (void)registerDeviceToken:(NSData *)deviceToken;
|
221 | 222 |
|
222 |
| - |
223 | 223 | /*!
|
224 | 224 | * @abstract 处理收到的 APNs 消息
|
225 | 225 | */
|
226 | 226 | + (void)handleRemoteNotification:(NSDictionary *)remoteInfo;
|
227 | 227 |
|
| 228 | +/*! |
| 229 | + * @abstract 向极光服务器提交Token |
| 230 | + * |
| 231 | + * @param voipToken 推送使用的Voip Token |
| 232 | + */ |
| 233 | ++ (void)registerVoipToken:(NSData *)voipToken; |
| 234 | + |
| 235 | + |
| 236 | +/*! |
| 237 | + * @abstract 处理收到的 Voip 消息 |
| 238 | + * |
| 239 | + * @param remoteInfo 下发的 Voip 内容 |
| 240 | + */ |
| 241 | ++ (void)handleVoipNotification:(NSDictionary *)remoteInfo; |
| 242 | + |
| 243 | + |
228 | 244 | /*!
|
229 | 245 | * @abstract 检测通知授权状态
|
230 | 246 | * @param completion 授权结果通过status值返回,详见JPAuthorizationStatus
|
@@ -618,6 +634,22 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
|
618 | 634 | */
|
619 | 635 | + (void)setLogOFF;
|
620 | 636 |
|
| 637 | +/*! |
| 638 | + * @abstract 设置SDK地理位置权限开关 |
| 639 | + * |
| 640 | + * @discussion 关闭地理位置之后,SDK地理围栏的相关功能将受到影响,默认是开启。 |
| 641 | + * |
| 642 | + */ |
| 643 | ++ (void)setLocationEanable:(BOOL)isEanble; |
| 644 | + |
| 645 | +/*! |
| 646 | +* @abstract 设置应用内消息的代理 |
| 647 | +* |
| 648 | +* @discussion 遵守JPushInMessageDelegate的代理对象 |
| 649 | +* |
| 650 | +*/ |
| 651 | ++ (void)setInMessageDelegate:(id<JPushInMessageDelegate>)inMessageDelegate; |
| 652 | + |
621 | 653 | ///----------------------------------------------------
|
622 | 654 | ///********************下列方法已过期********************
|
623 | 655 | ///**************请使用新版tag/alias操作接口**************
|
@@ -710,3 +742,23 @@ callbackSelector:(SEL)cbSelector
|
710 | 742 | - (void)jpushGeofenceIdentifer:(NSString *)geofenceId didExitRegion:(NSDictionary *)userInfo error:(NSError *)error;
|
711 | 743 |
|
712 | 744 | @end
|
| 745 | + |
| 746 | +@protocol JPushInMessageDelegate <NSObject> |
| 747 | + |
| 748 | +@optional |
| 749 | +/** |
| 750 | + *是否允许应用内消息弹出,默认为允许 |
| 751 | +*/ |
| 752 | +- (BOOL)jPushInMessageIsAllowedInMessagePop; |
| 753 | + |
| 754 | +/** |
| 755 | + *应用内消息已弹出 |
| 756 | +*/ |
| 757 | +- (void)jPushInMessageAlreadyPop; |
| 758 | + |
| 759 | +/** |
| 760 | + *应用内消息已消失 |
| 761 | +*/ |
| 762 | +- (void)jPushInMessageAlreadyDisapperar; |
| 763 | + |
| 764 | +@end |
0 commit comments