From f43a86c576af02957cacae3aac96fabba9c71450 Mon Sep 17 00:00:00 2001 From: yuhao900914 Date: Wed, 18 Aug 2021 10:02:20 -0700 Subject: [PATCH] fix: rename to initCompletionBlock --- Sources/Amplitude/Amplitude.m | 4 ++-- Sources/Amplitude/Public/Amplitude.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/Amplitude/Amplitude.m b/Sources/Amplitude/Amplitude.m index e5a66a87..99107fd7 100644 --- a/Sources/Amplitude/Amplitude.m +++ b/Sources/Amplitude/Amplitude.m @@ -438,8 +438,8 @@ - (void)initializeApiKey:(NSString *)apiKey } else { self.userId = [self.dbHelper getValue:USER_ID]; } - if (self.initializeCompleteSupportBlock != nil) { - self.initializeCompleteSupportBlock(); + if (self.initCompletionBlock != nil) { + self.initCompletionBlock(); } }]; diff --git a/Sources/Amplitude/Public/Amplitude.h b/Sources/Amplitude/Public/Amplitude.h index 6cc33909..92bc3f39 100644 --- a/Sources/Amplitude/Public/Amplitude.h +++ b/Sources/Amplitude/Public/Amplitude.h @@ -30,7 +30,7 @@ NS_ASSUME_NONNULL_BEGIN typedef NSString *_Nonnull (^AMPAdSupportBlock)(void); typedef NSDictionary *_Nullable (^AMPLocationInfoBlock)(void); -typedef void (^AMPInitializeCompleteSupportBlock)(void); +typedef void (^AMPInitCompletionBlock)(void); /** Amplitude iOS SDK. @@ -186,11 +186,11 @@ typedef void (^AMPInitializeCompleteSupportBlock)(void); * * Example: * __typeof(amp) __weak weakAmp = amp; - * amp.initializeSupportBlock = ^(void){ + * amp.initCompletionBlock = ^(void){ * NSLog(@"deviceId: %@, userId: %@", weakAmp.deviceId, weakAmp.userId); * }; */ -@property (nonatomic, strong, nullable) AMPInitializeCompleteSupportBlock initializeCompleteSupportBlock; +@property (nonatomic, strong, nullable) AMPInitCompletionBlock initCompletionBlock; #pragma mark - Methods