Class InsetsUtils

java.lang.Object
org.prebid.mobile.rendering.utils.helpers.InsetsUtils

public class InsetsUtils extends Object
  • Constructor Details

    • InsetsUtils

      public InsetsUtils()
  • Method Details

    • 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)