Skip to content

Commit 79614ba

Browse files
authored
Reverting swift removal of start methods (#377)
1 parent 3003f9a commit 79614ba

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Leanplum-SDK/Classes/Leanplum.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -313,24 +313,24 @@ NS_SWIFT_NAME(setAppId(_:productionKey:));
313313
+ (void)start;
314314

315315
+ (void)startWithResponseHandler:(LeanplumStartBlock)response
316-
NS_SWIFT_UNAVAILABLE("Use start(userId:attributes:completion:");
316+
NS_SWIFT_NAME(start(completion:));
317317

318318
+ (void)startWithUserAttributes:(NSDictionary<NSString *, id> *)attributes
319-
NS_SWIFT_UNAVAILABLE("Use start(userId:attributes:completion:");
319+
NS_SWIFT_NAME(start(attributes:));
320320

321321
+ (void)startWithUserId:(NSString *)userId
322-
NS_SWIFT_UNAVAILABLE("Use start(userId:attributes:completion:");
322+
NS_SWIFT_NAME(start(userId:));
323323

324324
+ (void)startWithUserId:(NSString *)userId
325-
responseHandler:(LeanplumStartBlock)response
326-
NS_SWIFT_UNAVAILABLE("Use start(userId:attributes:completion:");
325+
responseHandler:(nullable LeanplumStartBlock)response
326+
NS_SWIFT_NAME(start(userId:completion:));
327327

328328
+ (void)startWithUserId:(NSString *)userId
329329
userAttributes:(NSDictionary<NSString *, id> *)attributes
330330
NS_SWIFT_UNAVAILABLE("Use start(userId:attributes:completion:");
331331

332-
+ (void)startWithUserId:(nullable NSString *)userId
333-
userAttributes:(nullable NSDictionary<NSString *, id> *)attributes
332+
+ (void)startWithUserId:(NSString *)userId
333+
userAttributes:(NSDictionary<NSString *, id> *)attributes
334334
responseHandler:(nullable LeanplumStartBlock)startResponse
335335
NS_SWIFT_NAME(start(userId:attributes:completion:));
336336
/**@}*/

0 commit comments

Comments
 (0)