Package org.robolectric.shadows
Class ShadowFontsFontFamily
- java.lang.Object
-
- org.robolectric.shadows.ShadowFontsFontFamily
-
@Implements(value=android.graphics.fonts.FontFamily.class, minSdk=29) public class ShadowFontsFontFamily extends Object
Shadow forFontFamily.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShadowFontsFontFamily.ShadowFontsFontFamilyBuilderShadow forFontFamily.Builder.
-
Constructor Summary
Constructors Constructor Description ShadowFontsFontFamily()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FontgetFont(int index)The realFontFamily.getFont(int)calls into native code, so it needs to be shadowed to prevent an NPE.
-
-
-
Method Detail
-
getFont
@Implementation protected Font getFont(int index)
The realFontFamily.getFont(int)calls into native code, so it needs to be shadowed to prevent an NPE.
-
-