SwipeableInterstitialRequest.Builder

@ExperimentalApi
interface SwipeableInterstitialRequest.Builder<T : Any?>

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 functions

open T
enableCustomClickSwipeGesture(
    customClickSwipeGestureDirection: NativeAd.SwipeGestureDirection
)

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

T
enableCustomClickSwipeGesture(
    customClickSwipeGestureDirection: NativeAd.SwipeGestureDirection,
    customClickSwipeGestureTapsAllowed: Boolean
)

Enables swipes as a custom click gesture.

T
setAdSize(width: Int, height: Int)

Sets the size of the ad.

T
setMaxScreenHoldDurationSeconds(maxScreenHoldDurationSeconds: Int)

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

Public functions

enableCustomClickSwipeGesture

open fun enableCustomClickSwipeGesture(
    customClickSwipeGestureDirection: NativeAd.SwipeGestureDirection
): T

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

enableCustomClickSwipeGesture

fun enableCustomClickSwipeGesture(
    customClickSwipeGestureDirection: NativeAd.SwipeGestureDirection,
    customClickSwipeGestureTapsAllowed: Boolean
): T

Enables swipes as a custom click gesture.

setAdSize

fun setAdSize(width: Int, height: Int): T

Sets the size of the ad.

setMaxScreenHoldDurationSeconds

fun setMaxScreenHoldDurationSeconds(maxScreenHoldDurationSeconds: Int): T

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