MediationUtils

class MediationUtils


中介适配器的实用程序方法。

摘要

公共构造函数

公共函数

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

从潜在 AdSize 的列表中查找最接近所提供尺寸的受支持 AdSize。

公共构造函数

MediationUtils

MediationUtils()

公共函数

findClosestSize

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

从潜在 AdSize 的列表中查找最接近所提供尺寸的受支持 AdSize。如果没有一个在给定的阈值大小范围内,则返回 null。