getOptimalHeight

open fun getOptimalHeight(width: Int): Int

Given specified width in parameter and the current creative loaded (if any), returns the recommended height (in pixels) for this SASAdView to respect the creative's ratio (portrait as well as landscape if different)

Return

the recommended height in pixels. -1 if not relevant

Parameters

width

the width associated with the optimal height


open fun getOptimalHeight(): Int

Given the current width of this SASAdView and the current creative loaded (if any), returns the recommended height (in pixels) for this SASAdView to respect the creative's ratio (portrait as well as landscape if different)

Return

the recommended height in pixels. -1 if not relevant