Skip to content

Commit

Permalink
fix: rename to initCompletionBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhao900914 committed Aug 18, 2021
1 parent c4986b3 commit f43a86c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Sources/Amplitude/Amplitude.m
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}];

Expand Down
6 changes: 3 additions & 3 deletions Sources/Amplitude/Public/Amplitude.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit f43a86c

Please sign in to comment.