MediationUtils

object MediationUtils


Summary

Public functions

AdSize?
findClosestSize(
    context: Context,
    originalAdSize: AdSize?,
    potentials: List<AdSize>?
)

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

Public functions

findClosestSize

fun findClosestSize(
    context: Context,
    originalAdSize: AdSize?,
    potentials: List<AdSize>?
): AdSize?

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