Skip to content

Commit 99d6475

Browse files
committed
Updated native OneSignal libraries
* iOS 2.10.0 * Android 3.10.8
1 parent a584c6c commit 99d6475

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed
Binary file not shown.

OneSignalExample/Assets/OneSignal/Platforms/iOS/OneSignal.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,14 @@ typedef NS_ENUM(NSInteger, OSNotificationPermission) {
213213
OSNotificationPermissionProvisional
214214
};
215215

216+
typedef void (^OSNotificationDisplayTypeResponse)(OSNotificationDisplayType displayType);
217+
218+
// Notification Display Type Delegate
219+
// Allows apps to customize per-notification display-type
220+
@protocol OSNotificationDisplayTypeDelegate <NSObject>
221+
- (void)willPresentInFocusNotificationWithPayload:(OSNotificationPayload *)payload
222+
withCompletion:(OSNotificationDisplayTypeResponse)completion;
223+
@end
216224

217225

218226
// Permission Classes
@@ -402,6 +410,10 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {
402410

403411
+ (OSPermissionSubscriptionState*)getPermissionSubscriptionState;
404412

413+
// When the app is in-focus, this allows you to add a delegate that can customize the
414+
// display type for specific notifications
415+
+ (void)setNotificationDisplayTypeDelegate:(NSObject<OSNotificationDisplayTypeDelegate>*)delegate;
416+
405417
+ (void)addPermissionObserver:(NSObject<OSPermissionObserver>*)observer;
406418
+ (void)removePermissionObserver:(NSObject<OSPermissionObserver>*)observer;
407419

Binary file not shown.

0 commit comments

Comments
 (0)