MediationUtils

public static class MediationUtils


Summary

Public fields

static @NonNull MediationUtils

Public methods

static final AdSize
findClosestSize(
    @NonNull Context context,
    AdSize originalAdSize,
    List<@NonNull AdSize> potentials
)

Finds the closest supported AdSize from the list of potentials to the provided size.

Public fields

INSTANCE

public static @NonNull MediationUtils INSTANCE

Public methods

findClosestSize

public static final AdSize findClosestSize(
    @NonNull Context context,
    AdSize originalAdSize,
    List<@NonNull AdSize> potentials
)

Finds the closest supported AdSize from the list of potentials to the provided size. Returns null if none are within given threshold size range.