SwipeableInterstitialRequest.Builder

@ExperimentalApi
public interface SwipeableInterstitialRequest.Builder<T extends Object>

Known direct subclasses
SwipeableInterstitialAdRequest.Builder

A builder for a swipeable interstitial ad request.


Interface that holds common setters for Swipeable Interstitial ad requests and signal requests.

Summary

Public methods

default @NonNull T
enableCustomClickSwipeGesture(
    @NonNull NativeAd.SwipeGestureDirection customClickSwipeGestureDirection
)

Enables swipes as a custom click gesture with customClickSwipeGestureTapsAllowed default set to true.

abstract @NonNull T
enableCustomClickSwipeGesture(
    @NonNull NativeAd.SwipeGestureDirection customClickSwipeGestureDirection,
    boolean customClickSwipeGestureTapsAllowed
)

Enables swipes as a custom click gesture.

abstract @NonNull T
setAdSize(int width, int height)

Sets the size of the ad.

abstract @NonNull T
setMaxScreenHoldDurationSeconds(int maxScreenHoldDurationSeconds)

Sets the maximum duration in seconds an ad is allowed to hold the screen before the ad becomes swipeable.

Public methods

enableCustomClickSwipeGesture

default @NonNullenableCustomClickSwipeGesture(
    @NonNull NativeAd.SwipeGestureDirection customClickSwipeGestureDirection
)

Enables swipes as a custom click gesture with customClickSwipeGestureTapsAllowed default set to true.

enableCustomClickSwipeGesture

abstract @NonNullenableCustomClickSwipeGesture(
    @NonNull NativeAd.SwipeGestureDirection customClickSwipeGestureDirection,
    boolean customClickSwipeGestureTapsAllowed
)

Enables swipes as a custom click gesture.

setAdSize

abstract @NonNullsetAdSize(int width, int height)

Sets the size of the ad.

setMaxScreenHoldDurationSeconds

abstract @NonNullsetMaxScreenHoldDurationSeconds(int maxScreenHoldDurationSeconds)

Sets the maximum duration in seconds an ad is allowed to hold the screen before the ad becomes swipeable.