commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADFullScreenContentDelegate.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2020 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
|
|
10 |
@protocol GADFullScreenContentDelegate; |
|
11 |
|
|
12 |
/// Protocol for ads that present full screen content. |
|
13 |
@protocol GADFullScreenPresentingAd <NSObject> |
|
14 |
|
|
15 |
/// Delegate object that receives full screen content messages. |
|
16 |
@property(nonatomic, weak, nullable) id<GADFullScreenContentDelegate> fullScreenContentDelegate; |
|
17 |
|
|
18 |
@end |
|
19 |
|
|
20 |
/// Delegate methods for receiving notifications about presentation and dismissal of full screen |
|
21 |
/// content. Full screen content covers your application's content. The delegate may want to pause |
|
22 |
/// animations or time sensitive interactions. Full screen content may be presented in the following |
|
23 |
/// cases: |
|
24 |
/// 1. A full screen ad is presented. |
|
25 |
/// 2. An ad interaction opens full screen content. |
|
26 |
@protocol GADFullScreenContentDelegate <NSObject> |
|
27 |
|
|
28 |
@optional |
|
29 |
|
|
30 |
/// Tells the delegate that an impression has been recorded for the ad. |
|
31 |
- (void)adDidRecordImpression:(nonnull id<GADFullScreenPresentingAd>)ad; |
|
32 |
|
|
33 |
/// Tells the delegate that a click has been recorded for the ad. |
|
34 |
- (void)adDidRecordClick:(nonnull id<GADFullScreenPresentingAd>)ad; |
|
35 |
|
|
36 |
/// Tells the delegate that the ad failed to present full screen content. |
|
37 |
- (void)ad:(nonnull id<GADFullScreenPresentingAd>)ad |
|
38 |
didFailToPresentFullScreenContentWithError:(nonnull NSError *)error; |
|
39 |
|
|
40 |
/// Tells the delegate that the ad will present full screen content. |
|
41 |
- (void)adWillPresentFullScreenContent:(nonnull id<GADFullScreenPresentingAd>)ad; |
|
42 |
|
|
43 |
/// Tells the delegate that the ad will dismiss full screen content. |
|
44 |
- (void)adWillDismissFullScreenContent:(nonnull id<GADFullScreenPresentingAd>)ad; |
|
45 |
|
|
46 |
/// Tells the delegate that the ad dismissed full screen content. |
|
47 |
- (void)adDidDismissFullScreenContent:(nonnull id<GADFullScreenPresentingAd>)ad; |
|
48 |
|
|
49 |
#pragma mark - Unavailable |
|
50 |
|
|
51 |
/// Unsupported. Delegates should implement adWillPresentFullScreenContent: instead. |
|
52 |
- (void)adDidPresentFullScreenContent:(nonnull id<GADFullScreenPresentingAd>)ad NS_UNAVAILABLE; |
|
53 |
|
|
54 |
@end |