99 * Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved.
1010 */
1111
12- #define JPUSH_VERSION_NUMBER 3.1 .2
12+ #define JPUSH_VERSION_NUMBER 3.2 .2
1313
1414#import < Foundation/Foundation.h>
1515
@@ -148,12 +148,6 @@ typedef NS_OPTIONS(NSUInteger, JPAuthorizationOptions) {
148148// / @name Setup 启动相关
149149// /----------------------------------------------------
150150
151- /* !
152- * @abstract 启动SDK
153- *
154- * @discussion 这是旧版本的启动方法, 依赖于 PushConfig.plist 文件. 建议不要使用, 已经过期.
155- */
156- + (void )setupWithOption : (NSDictionary *)launchingOption __attribute__((deprecated(" JPush 2.1.0 版本已过期" )));
157151
158152/* !
159153 * @abstract 启动SDK
@@ -163,7 +157,6 @@ typedef NS_OPTIONS(NSUInteger, JPAuthorizationOptions) {
163157 * @param channel 发布渠道. 可选.
164158 * @param isProduction 是否生产环境. 如果为开发状态,设置为 NO; 如果为生产状态,应改为 YES.
165159 * App 证书环境取决于profile provision的配置,此处建议与证书环境保持一致.
166- * @param advertisingIdentifier 广告标识符(IDFA) 如果不需要使用IDFA,传nil.
167160 *
168161 * @discussion 提供SDK启动必须的参数, 来启动 SDK.
169162 * 此接口必须在 App 启动时调用, 否则 JPush SDK 将无法正常工作.
@@ -173,7 +166,19 @@ typedef NS_OPTIONS(NSUInteger, JPAuthorizationOptions) {
173166 channel : (NSString *)channel
174167 apsForProduction : (BOOL )isProduction ;
175168
176-
169+ /* !
170+ * @abstract 启动SDK
171+ *
172+ * @param launchingOption 启动参数.
173+ * @param appKey 一个JPush 应用必须的,唯一的标识. 请参考 JPush 相关说明文档来获取这个标识.
174+ * @param channel 发布渠道. 可选.
175+ * @param isProduction 是否生产环境. 如果为开发状态,设置为 NO; 如果为生产状态,应改为 YES.
176+ * App 证书环境取决于profile provision的配置,此处建议与证书环境保持一致.
177+ * @param advertisingId 广告标识符(IDFA) 如果不需要使用IDFA,传nil.
178+ *
179+ * @discussion 提供SDK启动必须的参数, 来启动 SDK.
180+ * 此接口必须在 App 启动时调用, 否则 JPush SDK 将无法正常工作.
181+ */
177182+ (void )setupWithOption : (NSDictionary *)launchingOption
178183 appKey : (NSString *)appKey
179184 channel : (NSString *)channel
@@ -385,6 +390,13 @@ typedef NS_OPTIONS(NSUInteger, JPAuthorizationOptions) {
385390 */
386391+ (void )registerLbsGeofenceDelegate : (id <JPUSHGeofenceDelegate>)delegate withLaunchOptions : (NSDictionary *)launchOptions ;
387392
393+ /* *
394+ 删除地理围栏
395+
396+ @param geofenceId 地理围栏id
397+ */
398+ + (void )removeGeofenceWithIdentifier : (NSString *)geofenceId ;
399+
388400// /----------------------------------------------------
389401// / @name Local Notification 本地通知
390402// /----------------------------------------------------
@@ -640,14 +652,14 @@ callbackSelector:(SEL)cbSelector
640652 * @param response 通知响应对象
641653 * @param completionHandler
642654 */
643- - (void )jpushNotificationCenter : (UNUserNotificationCenter *)center didReceiveNotificationResponse : (UNNotificationResponse *)response withCompletionHandler : (void (^)())completionHandler ;
655+ - (void )jpushNotificationCenter : (UNUserNotificationCenter *)center didReceiveNotificationResponse : (UNNotificationResponse *)response withCompletionHandler : (void (^)(void ))completionHandler ;
644656
645657/*
646658 * @brief handle UserNotifications.framework [openSettingsForNotification:]
647659 * @param center [UNUserNotificationCenter currentNotificationCenter] 新特性用户通知中心
648660 * @param notification 当前管理的通知对象
649661 */
650- - (void )jpushNotificationCenter : (UNUserNotificationCenter *)center openSettingsForNotification : (nullable UNNotification *)notification NS_AVAILABLE_IOS(12.0 );
662+ - (void )jpushNotificationCenter : (UNUserNotificationCenter *)center openSettingsForNotification : (UNNotification *)notification NS_AVAILABLE_IOS(12.0 );
651663
652664@end
653665
@@ -660,7 +672,7 @@ callbackSelector:(SEL)cbSelector
660672 @param userInfo 地理围栏触发时返回的信息
661673 @param error 错误信息
662674 */
663- - (void )jpushGeofenceIdentifer : (NSString * _Nonnull )geofenceId didEnterRegion : (NSDictionary * _Nullable )userInfo error : (NSError * _Nullable )error ;
675+ - (void )jpushGeofenceIdentifer : (NSString *)geofenceId didEnterRegion : (NSDictionary *)userInfo error : (NSError *)error ;
664676
665677/* *
666678 离开地理围栏区域
@@ -669,6 +681,6 @@ callbackSelector:(SEL)cbSelector
669681 @param userInfo 地理围栏触发时返回的信息
670682 @param error 错误信息
671683 */
672- - (void )jpushGeofenceIdentifer : (NSString * _Nonnull )geofenceId didExitRegion : (NSDictionary * _Nullable )userInfo error : (NSError * _Nullable )error ;
684+ - (void )jpushGeofenceIdentifer : (NSString *)geofenceId didExitRegion : (NSDictionary *)userInfo error : (NSError *)error ;
673685
674686@end
0 commit comments