Menu

ATSplashCustomEvent

Copy
@interface ATSplashCustomEvent : ATAdCustomEvent

@property (nonatomic, weak) id<ATSplashDelegate> delegate;
@property (nonatomic, strong, nullable) ATSplash *splash;
@property (nonatomic, readonly) NSString *unitID;
@property (nonatomic, assign) NSInteger priorityIndex;
@property (nonatomic, strong, nullable) UIView *containerBgView;

- (instancetype)initWithInfo:(NSDictionary *)serverInfo
                   localInfo:(NSDictionary *)localInfo;

- (NSDictionary *)delegateExtra;
- (void)trackShowWithoutWaterfall;
- (void)trackClickWithoutWaterfall;

/// Callback to the developer when the ad is closed
- (void)trackSplashAdClosed:(nullable NSDictionary *)extra;

/// Callback to the developer when the ad is about to be closed
- (void)trackSplashAdWillClosed:(NSDictionary *)extra;

/// Callback to the developer when ad loading is complete
/// @param splashAd - Splash ad object
/// v5.7.05 +
- (void)trackSplashAdLoaded:(id _Nullable)splashAd;

/// Callback to the developer when ad loading is complete
/// @param splashAd - Splash ad object
/// @param adExtra - Extra data
/// v5.7.06 +
- (void)trackSplashAdLoaded:(id _Nullable)splashAd adExtra:(NSDictionary * _Nullable)adExtra;

/// Callback to the developer when the ad is rendered successfully (asset download successful)
- (void)trackSplashAdRenderSuccess:(id)splashAd adExtra:(NSDictionary *_Nullable)adExtra;

/// Callback to the developer when ad data is loaded successfully
- (void)trackSplashAdDataLoadSuccess:(id)splashAd adExtra:(NSDictionary *_Nullable)adExtra;

/// Callback to the developer when the ad is displayed
- (void)trackSplashAdShow;

/// Callback to the developer when the ad is clicked
- (void)trackSplashAdClick;

/// Callback to the developer when the ad is clicked
- (void)trackSplashAdClickWithClickType:(ATOfferClickAdType)clickType;

/// Callback to the developer when ad loading fails
/// @param error - Error information
- (void)trackSplashAdLoadFailed:(NSError *)error;

/// Callback to the developer when the ad zoomout view is clicked
- (void)trackSplashAdZoomOutViewClick;

/// Callback to the developer when the ad zoomout view is closed
- (void)trackSplashAdZoomOutViewClosed;

/// Whether the ad click jump is in Deeplink form
/// @param success - Success status
- (void)trackSplashAdDeeplinkOrJumpResult:(BOOL)success;

- (void)trackSplashAdDetailWillShow;

/// v5.7.53+
- (void)trackSplashAdDetailClosed;
- (void)trackSplashAdShowFailed:(NSError *)error;
- (void)trackSplashAdShowFailed:(NSError *)error extra:(NSDictionary *)extraDic;

/// v5.7.61+
/// Callback when custom skip button and countdown related parameters are passed in
/// @param countdown - Current countdown time
- (void)trackSplashAdCountdownTime:(NSInteger)countdown;

- (void)startCountdown:(NSDictionary *)localInfo
        countdownBlock:(void(^)(NSInteger time))block;

- (BOOL)isPauseTimer;

@property (nonatomic, strong) id _Nullable protectLifeCycleObject;

@end
Previous
ATSDKGlobalSetting
Next
Extra Parameters
Last modified: 2026-07-08Powered by