Package-level declarations

Types

Link copied to clipboard

Placement of the AdChoices icon overlay.

Link copied to clipboard
data class NativeAdOptions(val mediaAspectRatio: NativeMediaAspectRatio = NativeMediaAspectRatio.Any, val disableImageLoading: Boolean = false, val requestMultipleImages: Boolean = false, val adChoicesPlacement: AdChoicesPlacement = AdChoicesPlacement.TopRight, val videoOptions: NativeVideoOptions = NativeVideoOptions(), val customClickGesture: NativeCustomClickGesture? = null)

Options for native ad requests and rendering.

Link copied to clipboard
data class NativeAdToken(val placementId: String, val tokenId: String)

Opaque handle to a pooled native ad. Obtained from NativeAdPool.acquire and returned via NativeAdPool.release. The tokenId uniquely identifies the cached ad instance within its pool.

Link copied to clipboard
data class NativeCustomClickGesture(val direction: SwipeGestureDirection, val tapsAllowed: Boolean)

Custom click gesture for native ads. Android only. Ignored on iOS.

Link copied to clipboard

Preferred aspect ratio for native ad media.

Link copied to clipboard
data class NativeMediaInfo(val aspectRatio: Float?, val hasVideoContent: Boolean, val durationSeconds: Double?)

Information about a native ad's media asset (image or video).

Link copied to clipboard
data class NativeVideoOptions(val startMuted: Boolean = true, val customControlsRequested: Boolean = false, val clickToExpandRequested: Boolean = false)

Options for native video ads.

Link copied to clipboard

Direction of a swipe gesture.

Functions

Link copied to clipboard
Link copied to clipboard
fun NativeAdPool.peekIosNativeAd(token: NativeAdToken): GADNativeAd?