AdSize

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

Based on the AdMob implementation of AdSize, this module enables Android-like syntax to be used multiplatform.

Parameters

width

The width of the ad in whatever unit of measurement Google came up with

height

The height of the ad in whatever unit of measurement Google came up with

See also

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

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 whatever unit of measurement Google came up with

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

The width of the ad in whatever unit of measurement Google came up with

actual val width: Int

Functions

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