MediationUtils

public class MediationUtils


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

摘要

公共构造函数

公共方法

static @Nullable AdSize
findClosestSize(
    Context context,
    AdSize original,
    List<AdSize> potentials
)

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

公共构造函数

MediationUtils

public MediationUtils()

公共方法

findClosestSize

public static @Nullable AdSize findClosestSize(
    Context context,
    AdSize original,
    List<AdSize> potentials
)

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