AI-generated Key Takeaways
-
GADNativeAdCustomClickGestureOptions provides ad loader options for custom click gestures, available only for allowlisted publishers.
-
The
swipeGestureDirection
property allows specifying the direction in which swipe gestures are detected and counted as clicks. -
The
tapsAllowed
property determines whether tap gestures are detected and counted as clicks. -
An initializer method allows setting both the swipe gesture direction and whether taps are allowed when initializing the options.
-
The default initializer (
init
) is unavailable for this class.
GADNativeAdCustomClickGestureOptions
@interface GADNativeAdCustomClickGestureOptions : GADAdLoaderOptions
Ad loader options for custom click gestures. Available for allowlisted publishers only. These options will be ignored for publishers not allowlisted.
-
The direction in which swipe gestures should be detected and counted as clicks.
Declaration
Swift
var swipeGestureDirection: UISwipeGestureRecognizer.Direction { get set }
Objective-C
@property (nonatomic) UISwipeGestureRecognizerDirection swipeGestureDirection;
-
Whether tap gestures should continue to be detected and counted as clicks.
Declaration
Swift
var areTapsAllowed: Bool { get set }
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=areTapsAllowed) BOOL tapsAllowed;
-
Initialize with the direction for detecting swipe gestures and counting them as clicks, and whether tap gestures are allowed on the ad.
Declaration
Swift
init(swipeGestureDirection direction: UISwipeGestureRecognizer.Direction, tapsAllowed: Bool)
Objective-C
- (nonnull instancetype)initWithSwipeGestureDirection: (UISwipeGestureRecognizerDirection)direction tapsAllowed:(BOOL)tapsAllowed;
-
Unavailable
Unavailable.
Declaration
Objective-C
- (nonnull instancetype)init;