AdSize

actual class AdSize(val width: Int, val height: Int)

Represents the size of an ad.

Parameters

width

The width of the ad.

height

The height of the ad.

expect class AdSize(width: Int, height: Int)

Represents the size of an ad in density-independent pixels (dp). This is a multiplatform representation of the AdMob AdSize.

Parameters

width

The width of the ad in density-independent pixels (dp).

height

The height of the ad in density-independent pixels (dp).

actual class AdSize(val width: Int, val height: Int)

The iOS implementation of AdSize.

Constructors

Link copied to clipboard
actual constructor(width: Int, height: Int)
expect constructor(width: Int, height: Int)
actual constructor(width: Int, height: Int)

Types

Link copied to clipboard
actual object Companion
expect object Companion
actual object Companion

Properties

Link copied to clipboard
actual val height: Int
expect val height: Int

The height of the ad in density-independent pixels (dp).

actual val height: Int
Link copied to clipboard
actual val width: Int
expect val width: Int

The width of the ad in density-independent pixels (dp).

actual val width: Int

Functions

Link copied to clipboard
fun AdSize.toAndroid(): AdSize

Converts a common AdSize to a com.google.android.gms.ads.AdSize.

Link copied to clipboard

Converts a common AdSize to a CValue of CGRect.

Link copied to clipboard
fun toIos(): GADAdSize

Converts this common AdSize to an iOS-specific GADAdSize.