MediationUtils

class MediationUtils


中介服務轉接器的實用方法。

摘要

常數

const Double
const Double

公用建構函式

公開函式

java-static AdSize?
findClosestSize(
    context: Context!,
    original: AdSize!,
    potentials: (Mutable)List<AdSize!>!
)

從可用大小清單中找出與指定大小最接近的支援 AdSize。

常數

MIN_HEIGHT_RATIO

protected const val MIN_HEIGHT_RATIO = 0.7: Double

MIN_WIDTH_RATIO

protected const val MIN_WIDTH_RATIO = 0.5: Double

公用建構函式

MediationUtils

MediationUtils()

公開函式

findClosestSize

java-static fun findClosestSize(
    context: Context!,
    original: AdSize!,
    potentials: (Mutable)List<AdSize!>!
): AdSize?

從支援的廣告尺寸清單中,找出與指定尺寸最接近的廣告尺寸。如果沒有任何項目位於指定的閾值大小範圍內,則會傳回空值。