Class InsetsUtils
- java.lang.Object
-
- org.prebid.mobile.rendering.utils.helpers.InsetsUtils
-
public class InsetsUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description InsetsUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddCutoutAndNavigationInsets(android.view.View view)Adds to the view insets from navigation bar and cutout.static CustomInsetsgetCutoutInsets(android.content.Context context)static CustomInsetsgetNavigationInsets(android.content.Context context)static voidresetMargins(android.view.View view)
-
-
-
Method Detail
-
addCutoutAndNavigationInsets
public static void addCutoutAndNavigationInsets(android.view.View view)
Adds to the view insets from navigation bar and cutout. Insets must be calculated as we use translucent status and navigation bar in interstitial ad. Must be applied to every view in interstitial ad.It supports view where parents are RelativeLayout or FrameLayout.
-
getCutoutInsets
public static CustomInsets getCutoutInsets(android.content.Context context)
-
getNavigationInsets
public static CustomInsets getNavigationInsets(android.content.Context context)
-
resetMargins
public static void resetMargins(android.view.View view)
-
-