@@ -85,7 +85,7 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
8585// / You can call this method from any thread.
8686// / - Warning: __Deprecated:__ This method is deprectaed. You don't need to do anything else besides removing this call,
8787// / Batch Push will still work as expected.
88- + (void )setupPush NS_AVAILABLE_IOS(8_0)
88+ + (void )setupPush
8989 __attribute__((deprecated(" setupPush is deprecated. You don't need to do anything else besides removing this call, "
9090 " Batch Push will still work as expected." )));
9191
@@ -95,7 +95,7 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
9595// / system settings. Default value is: `BatchNotificationTypeBadge | BatchNotificationTypeSound |
9696// / BatchNotificationTypeAlert`.
9797// / - Parameter type: A bit mask specifying the types of notifications the app accepts.
98- + (void )setRemoteNotificationTypes : (BatchNotificationType)type NS_AVAILABLE_IOS(8_0) ;
98+ + (void )setRemoteNotificationTypes : (BatchNotificationType)type ;
9999
100100// / Method to trigger the iOS popup that asks the user if they wants to allow notifications to be displayed, then
101101// / get a Push token.
@@ -105,7 +105,7 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
105105// / You should call this at a strategic moment, like at the end of your welcome.
106106// /
107107// / Batch will automatically ask for a push token when the user replies.
108- + (void )requestNotificationAuthorization NS_AVAILABLE_IOS(8_0) ;
108+ + (void )requestNotificationAuthorization ;
109109
110110// / Method to ask iOS for a provisional notification authorization.
111111// /
@@ -116,15 +116,15 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
116116// / from the statusbar when unlocked.
117117// /
118118// / This method does nothing on iOS 11 or lower.
119- + (void )requestProvisionalNotificationAuthorization NS_AVAILABLE_IOS(8_0) ;
119+ + (void )requestProvisionalNotificationAuthorization ;
120120
121121// / Ask iOS to refresh the push token. If the app didn't prompt the user for consent yet, this will not be done.
122122// /
123123// / You should call this at the start of your app, to make sure Batch always gets a valid token after app updates.
124- + (void )refreshToken NS_AVAILABLE_IOS(8_0) ;
124+ + (void )refreshToken ;
125125
126126// / Open the system settings on your applications' notification settings.
127- + (void )openSystemNotificationSettings NS_AVAILABLE_IOS(8_0) ;
127+ + (void )openSystemNotificationSettings ;
128128
129129// / Method to trigger the iOS popup that asks the user if they wants to allow Push Notifications, then get a Push token.
130130// / (Deprecated)
@@ -135,7 +135,7 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
135135// / Equivalent to calling ``BatchPush/requestNotificationAuthorization``
136136// / - Warning: __Deprecated:__ This method is deprectaed. Use ``BatchPush/requestNotificationAuthorization`` and
137137// / ``BatchPush/refreshToken`` separately. More info in our documentation.
138- + (void )registerForRemoteNotifications NS_AVAILABLE_IOS(8_0) __attribute__ ((
138+ + (void )registerForRemoteNotifications __attribute__((
139139 deprecated (" Use requestNotificationAuthorization and refreshToken separately. More info in our documentation." )));
140140
141141// / Method to trigger the iOS popup that asks the user if they want to allow Push Notifications and register to APNS.
@@ -152,8 +152,8 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
152152// / - Warning: __Deprecated:__ Use ``BatchPush/setNotificationsCategories:`` and
153153// / ``BatchPush/registerForRemoteNotifications`` separately.
154154+ (void )registerForRemoteNotificationsWithCategories : (nullable NSSet *)categories
155- NS_AVAILABLE_IOS(8_0)
156- __attribute__ ((deprecated(" Use setNotificationCategories and registerForRemoteNotifications separately." )));
155+
156+ __attribute__((deprecated(" Use setNotificationCategories and registerForRemoteNotifications separately." )));
157157
158158// / Set the notification action categories to iOS.
159159// /
@@ -164,19 +164,19 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
164164// / groups of actions a notification may include. If you try to register `UIUserNotificationCategory` instances on iOS
165165// / 10, Batch will automatically do a best effort conversion to `UNNotificationCategory`. If you don't want this
166166// / behaviour, please use the standard `UIApplication` methods.
167- + (void )setNotificationsCategories : (nullable NSSet *)categories NS_AVAILABLE_IOS(8_0) ;
167+ + (void )setNotificationsCategories : (nullable NSSet *)categories ;
168168
169169// / Clear the application's badge on the homescreen.
170170// /
171171// / You do not need to call this if you already called ``BatchPush/dismissNotifications``.
172- + (void )clearBadge NS_AVAILABLE_IOS(8_0) ;
172+ + (void )clearBadge ;
173173
174174// / Clear the app's notifications in the notification center. Also clears your badge.
175175// /
176176// / Call this when you want to remove the notifications. Your badge is removed afterwards, so if you want one, you need
177177// / to set it up again.
178178// / - Important: Be careful, this method also clears your badge.
179- + (void )dismissNotifications NS_AVAILABLE_IOS(8_0) ;
179+ + (void )dismissNotifications ;
180180
181181// / Set whether Batch Push should automatically try to handle deeplinks.
182182// /
@@ -190,37 +190,37 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
190190// / - Important: If Batch is set to handle your deeplinks, it will *automatically* call the fetch completion handler (if
191191// / applicable) with `UIBackgroundFetchResultNewData.
192192// / - Parameter handleDeeplinks: Whether Batch should handle deeplinks automatically.
193- + (void )enableAutomaticDeeplinkHandling : (BOOL )handleDeeplinks NS_AVAILABLE_IOS(8_0) ;
193+ + (void )enableAutomaticDeeplinkHandling : (BOOL )handleDeeplinks ;
194194
195195// / Get Batch Push's deeplink from a notification's userInfo.
196196// /
197197// / - Parameter userData The notification's payload.
198198// / - Returns: Batch's Deeplink, or nil if not found.
199- + (nullable NSString *)deeplinkFromUserInfo : (nonnull NSDictionary *)userData NS_AVAILABLE_IOS(8_0) ;
199+ + (nullable NSString *)deeplinkFromUserInfo : (nonnull NSDictionary *)userData ;
200200
201201// / Get the last known push token.
202202// /
203203// / Your application should still register for remote notifications once per launch, in order to keep this value valid.
204204// / - Important: The returned token might be outdated and invalid if this method is called too early in your application
205205// / lifecycle.
206206// / - Returns: A push token, nil if unavailable.
207- + (nullable NSString *)lastKnownPushToken NS_AVAILABLE_IOS(8_0) ;
207+ + (nullable NSString *)lastKnownPushToken ;
208208
209209// / Disable the push's automatic integration.
210210// /
211211// / If you call this, you are responsible of forwarding your application's delegate and
212212// / `UNUserNotificationCenterDelegate` calls to Batch. If you don't, some parts of the SDK and Dashboard will break.
213213// / Calling this method automatically calls `disableAutomaticNotificationCenterIntegration`.
214214// / - Important: This must be called before you start Batch, or it will have no effect.
215- + (void )disableAutomaticIntegration NS_AVAILABLE_IOS(8_0) ;
215+ + (void )disableAutomaticIntegration ;
216216
217217// / Registers a device token to Batch.
218218// /
219219// / You should call this method in `application:didRegisterForRemoteNotificationsWithDeviceToken:`.
220220// / - Important: If you didn't call ``BatchPush/disableAutomaticIntegration``, this method will have no effect.
221221// / If you called it but don't implement this method, Batch's push features will __NOT__ work.
222222// / - Parameter token: The untouched `deviceToken` NSData argument given to you in the application delegate method.
223- + (void )handleDeviceToken : (nonnull NSData *)token NS_AVAILABLE_IOS(8_0) ;
223+ + (void )handleDeviceToken : (nonnull NSData *)token ;
224224
225225// / Check if the received push is a Batch one.
226226// /
@@ -229,7 +229,7 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
229229// / - Parameter userInfo: The untouched `userInfo` NSDictionary argument given to you in the application delegate
230230// / method.
231231// / - Returns: Wheter it is a Batch'sPush. If it returns true, you should not handle the push.
232- + (BOOL )isBatchPush : (nonnull NSDictionary *)userInfo NS_AVAILABLE_IOS(8_0) ;
232+ + (BOOL )isBatchPush : (nonnull NSDictionary *)userInfo ;
233233
234234// / Make Batch process a notification. (Deprecated)
235235// /
@@ -255,8 +255,7 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
255255// / - userInfo: The untouched `userInfo` NSDictionary argument given to you in the application delegate method.
256256// / - identifier: The action's identifier. Used for tracking purposes: it can match your raw action name, or be a more
257257// / user-friendly string.
258- + (void )handleNotification : (nonnull NSDictionary *)userInfo
259- actionIdentifier : (nullable NSString *)identifier NS_AVAILABLE_IOS(8_0);
258+ + (void )handleNotification : (nonnull NSDictionary *)userInfo actionIdentifier : (nullable NSString *)identifier ;
260259
261260#pragma clang diagnostic push
262261#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@@ -289,7 +288,7 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
289288+ (void )handleUserNotificationCenter : (nonnull UNUserNotificationCenter *)center
290289 willPresentNotification : (nonnull UNNotification *)notification
291290 willShowSystemForegroundAlert : (BOOL )willShowSystemForegroundAlert
292- NS_AVAILABLE_IOS(10_0) NS_SWIFT_NAME (handle(userNotificationCenter:willPresent:willShowSystemForegroundAlert:));
291+ NS_SWIFT_NAME(handle(userNotificationCenter:willPresent:willShowSystemForegroundAlert:));
293292
294293// / Make Batch process a background notification open/action.
295294// /
@@ -299,8 +298,8 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
299298// / - center: Original center argument.
300299// / - response: Original response argument.
301300+ (void )handleUserNotificationCenter : (nonnull UNUserNotificationCenter *)center
302- didReceiveNotificationResponse : (nonnull UNNotificationResponse *)response NS_AVAILABLE_IOS(10_0)
303- NS_SWIFT_NAME (handle(userNotificationCenter:didReceive:));
301+ didReceiveNotificationResponse : (nonnull UNNotificationResponse *)response
302+ NS_SWIFT_NAME(handle(userNotificationCenter:didReceive:));
304303
305304@end
306305
0 commit comments