Skip to content

Commit

Permalink
chore: use recommended instancetype for init method
Browse files Browse the repository at this point in the history
* remove extra parens
  • Loading branch information
andrewjl-mux committed Oct 29, 2024
1 parent 347ee17 commit d665b2c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Sources/MuxStatsGoogleIMAPlugin/MUXSDKIMAAdsListener.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ - (instancetype)initWithPlayerBinding:(MUXSDKPlayerBinding *)binding
_adRequestReported = NO;
_sendAdplayOnStarted = NO;
}
return(self);

return self;
}

- (void)monitorAdsManager:(IMAAdsManager *)adsManager {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ typedef NS_OPTIONS(NSUInteger, MUXSDKIMAAdsListenerOptions) {
@property (nonatomic, weak, nullable) id<IMAAdsManagerDelegate> customerAdsManagerDelegate;
@property (nonatomic, weak, nullable) id<IMAAdsLoaderDelegate> customerAdsLoaderDelegate;

- (id)initWithPlayerBinding:(MUXSDKPlayerBinding *)binding
- (instancetype)initWithPlayerBinding:(MUXSDKPlayerBinding *)binding
monitoringAdsLoader:(nullable IMAAdsLoader *)adsLoader;
- (id)initWithPlayerBinding:(MUXSDKPlayerBinding *)binding
- (instancetype)initWithPlayerBinding:(MUXSDKPlayerBinding *)binding
options:(MUXSDKIMAAdsListenerOptions)options
monitoringAdsLoader:(nullable IMAAdsLoader *)adsLoader;
- (void)monitorAdsManager:(IMAAdsManager *)adsManager;
Expand Down
4 changes: 2 additions & 2 deletions Sources/MuxStatsGoogleIMAPlugin/include/MuxImaListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ NS_CLASS_DEPRECATED_IOS(2_0, 12_0, "Use MUXSDKIMAAdsListener instead.")
@property (nonatomic, weak, nullable) id<IMAAdsManagerDelegate> customerAdsManagerDelegate;
@property (nonatomic, weak, nullable) id<IMAAdsLoaderDelegate> customerAdsLoaderDelegate;

- (id)initWithPlayerBinding:(MUXSDKPlayerBinding *)binding
- (instancetype)initWithPlayerBinding:(MUXSDKPlayerBinding *)binding
monitoringAdsLoader:(nullable IMAAdsLoader *)adsLoader;
- (id)initWithPlayerBinding:(MUXSDKPlayerBinding *)binding
- (instancetype)initWithPlayerBinding:(MUXSDKPlayerBinding *)binding
options:(MuxImaListenerOptions)options
monitoringAdsLoader:(nullable IMAAdsLoader *)adsLoader;
- (void)monitorAdsManager:(IMAAdsManager *)adsManager;
Expand Down

0 comments on commit d665b2c

Please sign in to comment.