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 for
FontFamily
.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowFontsFontFamily.ShadowFontsFontFamilyBuilder
Shadow forFontFamily.Builder
. -
Constructor Summary
Constructors Constructor Description ShadowFontsFontFamily()
-
Method Summary
Modifier and Type Method Description protected Font
getFont(int index)
The realFontFamily.getFont(int)
calls into native code, so it needs to be shadowed to prevent an NPE.
-
Constructor Details
-
ShadowFontsFontFamily
public ShadowFontsFontFamily()
-
-
Method Details
-
getFont
The realFontFamily.getFont(int)
calls into native code, so it needs to be shadowed to prevent an NPE.
-