TWMAdSize

class TWMAdSize(width: Int, height: Int)

The class describes the Banner size and used by TWMAdView.

Parameters

width

The width of the ad in density-independent pixels.

height

The height of the ad in density-independent pixels.

Constructors

TWMAdSize
Link copied to clipboard
fun TWMAdSize(width: Int, height: Int)
Specify the width and height by density-independent pixels.

Types

Companion
Link copied to clipboard
object Companion

Properties

height
Link copied to clipboard
val height: Int
The height of the ad in density-independent pixels.
width
Link copied to clipboard
val width: Int
The width of the ad in density-independent pixels.

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Compare the dimension of TWMAdSize.
getHeightInPixels
Link copied to clipboard
fun getHeightInPixels(context: Context): Int
Return the pixel height calculated on current device.
getWidthInPixels
Link copied to clipboard
fun getWidthInPixels(context: Context): Int
Return the pixel width calculated on current device.
toString
Link copied to clipboard
open override fun toString(): String
Return the string to represent the TWMAdSize.