File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,10 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {
67
67
68
68
- (id )initWithLaunchOptions : (NSDictionary *)launchOptions appId : (NSString *)appId handleNotification : (OneSignalHandleNotificationBlock)callback ;
69
69
70
+ - (id )initWithLaunchOptions : (NSDictionary *)launchOptions handleNotification : (OneSignalHandleNotificationBlock)callback autoRegister : (BOOL )autoRegister ;
71
+
72
+ - (id )initWithLaunchOptions : (NSDictionary *)launchOptions autoRegister : (BOOL )autoRegister ;
73
+
70
74
- (id )initWithLaunchOptions : (NSDictionary *)launchOptions appId : (NSString *)appId handleNotification : (OneSignalHandleNotificationBlock)callback autoRegister : (BOOL )autoRegister ;
71
75
72
76
// Only use if you passed FALSE to autoRegister
Original file line number Diff line number Diff line change @@ -114,6 +114,14 @@ - (id)initWithLaunchOptions:(NSDictionary*)launchOptions appId:(NSString*)appId
114
114
return [self initWithLaunchOptions: launchOptions appId: appId handleNotification: callback autoRegister: true ];
115
115
}
116
116
117
+ - (id )initWithLaunchOptions : (NSDictionary *)launchOptions handleNotification : (OneSignalHandleNotificationBlock)callback autoRegister : (BOOL )autoRegister {
118
+ return [self initWithLaunchOptions: launchOptions appId: nil handleNotification: callback autoRegister: autoRegister];
119
+ }
120
+
121
+ - (id )initWithLaunchOptions : (NSDictionary *)launchOptions autoRegister : (BOOL )autoRegister {
122
+ return [self initWithLaunchOptions: launchOptions appId: nil handleNotification: nil autoRegister: autoRegister];
123
+ }
124
+
117
125
- (id )initWithLaunchOptions : (NSDictionary *)launchOptions appId : (NSString *)appId handleNotification : (OneSignalHandleNotificationBlock)callback autoRegister : (BOOL )autoRegister {
118
126
self = [super init ];
119
127
You can’t perform that action at this time.
0 commit comments