Class ShadowFontsFontFamily

java.lang.Object
org.robolectric.shadows.ShadowFontsFontFamily

@Implements(value=android.graphics.fonts.FontFamily.class, minSdk=29) public class ShadowFontsFontFamily extends Object
Shadow for FontFamily.
  • Constructor Details

    • ShadowFontsFontFamily

      public ShadowFontsFontFamily()
  • Method Details

    • getFont

      @Implementation protected Font getFont(int index)
      The real FontFamily.getFont(int) calls into native code, so it needs to be shadowed to prevent an NPE.