12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // ALAdDisplayDelegate.h
- // AppLovinSDK
- //
- // Created by Basil on 3/23/12.
- // Copyright © 2020 AppLovin Corporation. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @class ALAd;
- NS_ASSUME_NONNULL_BEGIN
- /**
- * This protocol defines a listener for ad display events.
- */
- @protocol ALAdDisplayDelegate <NSObject>
- /**
- * The SDK invokes this when the ad is displayed in the view.
- *
- * The SDK invokes this method on the main UI thread.
- *
- * @param ad Ad that was just displayed.
- * @param view Ad view in which the ad was displayed.
- */
- - (void)ad:(ALAd *)ad wasDisplayedIn:(UIView *)view;
- /**
- * The SDK invokes this method when the ad is hidden from the view. This occurs when the user "X"es out of an interstitial.
- *
- * The SDK invokes this method on the main UI thread.
- *
- * @param ad Ad that was just hidden.
- * @param view Ad view in which the ad was hidden.
- */
- - (void)ad:(ALAd *)ad wasHiddenIn:(UIView *)view;
- /**
- * The SDK invokes this method when the ad is clicked in the view.
- *
- * The SDK invokes this method on the main UI thread.
- *
- * @param ad Ad that was just clicked.
- * @param view Ad view in which the ad was clicked.
- */
- - (void)ad:(ALAd *)ad wasClickedIn:(UIView *)view;
- @end
- NS_ASSUME_NONNULL_END
|